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>
master
Ran Benita 2013-03-30 19:19:01 +03:00 committed by Daniel Stone
parent 38654f5e74
commit 094f1dc29a
1 changed files with 1 additions and 1 deletions

View File

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