diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-08-18 14:05:33 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-08-18 17:40:26 +0930 |
commit | 7aef93914e1d6446f64aa42eafa18375c2cb4bed (patch) | |
tree | 70b79cd204d5ab512e9db56157c51b53379d0078 | |
parent | eb18e9176841b3ea64c497f1919686e134713eb6 (diff) |
Silence valgrind warnings.
"Conditional jump or move depends on uninitialised value(s)"
-rw-r--r-- | keycodes.c | 2 | ||||
-rw-r--r-- | misc.c | 2 | ||||
-rw-r--r-- | xkbscan.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -494,7 +494,7 @@ HandleIncludeKeycodes(IncludeStmt * stmt, { unsigned newMerge; XkbFile *rtrn; - KeyNamesInfo included; + KeyNamesInfo included = {0}; Bool haveSelf; haveSelf = False; @@ -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); @@ -37,7 +37,7 @@ FILE *yyin = NULL; -static char scanFileBuf[1024]; +static char scanFileBuf[1024] = {0}; char *scanFile = scanFileBuf; int lineNum = 0; |