aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authortaiyu <taiyu.len@gmail.com>2015-09-18 06:52:04 -0700
committertaiyu <taiyu.len@gmail.com>2015-09-18 06:52:04 -0700
commitd2e2b04bfd505561981c9137bfc493bb8effe63e (patch)
tree8e720c0114cab4639393b4debc3f37de16bc4ed3 /sway/handlers.c
parenta04f645d7cb4f54ebc11119220b4adb5d0b82ef1 (diff)
minor fix
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 096df53c..15fa6521 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -331,7 +331,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
struct sway_binding *binding = mode->bindings->items[i];
if ((modifiers->mods ^ binding->modifiers) == 0) {
- bool match;
+ bool match = false;
int j;
for (j = 0; j < binding->keys->length; ++j) {
xkb_keysym_t *key = binding->keys->items[j];