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>
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)