From 7aef93914e1d6446f64aa42eafa18375c2cb4bed Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 18 Aug 2008 14:05:33 +0930 Subject: Silence valgrind warnings. "Conditional jump or move depends on uninitialised value(s)" --- keycodes.c | 2 +- misc.c | 2 +- xkbscan.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keycodes.c b/keycodes.c index f452f7b..6fe15fb 100644 --- a/keycodes.c +++ b/keycodes.c @@ -494,7 +494,7 @@ HandleIncludeKeycodes(IncludeStmt * stmt, { unsigned newMerge; XkbFile *rtrn; - KeyNamesInfo included; + KeyNamesInfo included = {0}; Bool haveSelf; haveSelf = False; diff --git a/misc.c b/misc.c index d1dc832..fe07812 100644 --- a/misc.c +++ b/misc.c @@ -43,7 +43,7 @@ ProcessIncludeFile(IncludeStmt * stmt, { FILE *file; XkbFile *rtrn, *mapToUse; - char oldFile[1024]; + char oldFile[1024] = {0}; int oldLine = lineNum; rtrn = XkbFindFileInCache(stmt->file, file_type, &stmt->path); diff --git a/xkbscan.c b/xkbscan.c index 75bfd1a..f62c9f9 100644 --- a/xkbscan.c +++ b/xkbscan.c @@ -37,7 +37,7 @@ FILE *yyin = NULL; -static char scanFileBuf[1024]; +static char scanFileBuf[1024] = {0}; char *scanFile = scanFileBuf; int lineNum = 0; -- cgit v1.2.1