summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2013-03-30 19:19:01 +0300
committerDaniel Stone <daniel@fooishbar.org>2013-04-01 17:50:08 +0100
commit094f1dc29a93d39a2a53ea60ed87edd7a1514db6 (patch)
tree773727a05fbd8a0d1688b1d38d68ada0fa4ea394 /src
parent38654f5e74d966b45393bd3bdfe718f19e27ba30 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/xkbcomp/keymap.c2
1 files changed, 1 insertions, 1 deletions
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)