Commit 094f1dc29a93d39a2a53ea60ed87edd7a1514db6

Ran Benita 2013-03-30T19:19:01

xkbcomp/keymap: silence a gcc warning src/xkbcomp/keymap.c:127:12: error: 'found' may be used uninitialized in this function [-Werror=maybe-uninitialized] Not really, but why not. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xkbcomp/keymap.c b/src/xkbcomp/keymap.c
index 5f4bfb6..bed3930 100644
--- a/src/xkbcomp/keymap.c
+++ b/src/xkbcomp/keymap.c
@@ -95,7 +95,7 @@ FindInterpForKey(struct xkb_keymap *keymap, const struct xkb_key *key,
      */
     darray_foreach(interp, keymap->sym_interprets) {
         xkb_mod_mask_t mods;
-        bool found;
+        bool found = false;
 
         if ((num_syms > 1 || interp->sym != syms[0]) &&
             interp->sym != XKB_KEY_NoSymbol)