projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc69b6
)
parser: shutup some 'may be used uninitialized' warnings
author
Ran Benita
<ran234@gmail.com>
Sun, 12 Jan 2014 11:18:39 +0000
(13:18 +0200)
committer
Ran Benita
<ran234@gmail.com>
Sun, 12 Jan 2014 11:18:39 +0000
(13:18 +0200)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/parser.y
patch
|
blob
|
history
diff --git
a/src/xkbcomp/parser.y
b/src/xkbcomp/parser.y
index
f846724
..
20ece28
100644
(file)
--- a/
src/xkbcomp/parser.y
+++ b/
src/xkbcomp/parser.y
@@
-760,12
+760,12
@@
MapName : STRING { $$ = $1; }
XkbFile *
parse(struct xkb_context *ctx, void *scanner, const char *map)
{
- struct parser_param param;
int ret;
XkbFile *first = NULL;
-
- param.scanner = scanner;
- param.ctx = ctx;
+ struct parser_param param = {
+ .scanner = scanner,
+ .ctx = ctx,
+ };
/*
* If we got a specific map, we look for it exclusively and return