[PATCH v2 04/25] [libx11] Zero-initialized new
Erkki Seppälä
erkki.seppala at vincit.fi
Mon Jan 31 04:01:56 PST 2011
Using uninitialized value "new"
Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira at nokia.com>
Signed-off-by: Erkki Seppälä <erkki.seppala at vincit.fi>
---
src/xlibi18n/lcGeneric.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xlibi18n/lcGeneric.c b/src/xlibi18n/lcGeneric.c
index 69ea97d..688a4cf 100644
--- a/src/xlibi18n/lcGeneric.c
+++ b/src/xlibi18n/lcGeneric.c
@@ -428,7 +428,7 @@ read_charset_define(
char name[BUFSIZ];
XlcCharSet charsetd;
char **value;
- int num, new;
+ int num, new = 0;
XlcSide side = XlcUnknown;
char *tmp;
--
1.7.0.4
More information about the xorg-devel
mailing list