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:
92e0772
)
rules: always initialize idx variable
author
Ran Benita
<ran234@gmail.com>
Sun, 30 Sep 2012 10:42:44 +0000
(12:42 +0200)
committer
Ran Benita
<ran234@gmail.com>
Sun, 30 Sep 2012 10:44:52 +0000
(12:44 +0200)
gcc didn't catch this one.
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/rules.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/rules.c
b/src/xkbcomp/rules.c
index
0fe2b9b
..
4287da8
100644
(file)
--- a/
src/xkbcomp/rules.c
+++ b/
src/xkbcomp/rules.c
@@
-881,6
+881,7
@@
append_expanded_kccgst_value(struct matcher *m, darray_char *to,
}
/* Check for index. */
+ idx = XKB_LAYOUT_INVALID;
if (i < value.len) {
if (s[i] == '[') {
if (mlv != MLVO_LAYOUT && mlv != MLVO_VARIANT) {