aboutsummaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorKonstantin Pospelov <kupospelov@gmail.com>2019-04-20 19:13:12 +0300
committerSimon Ser <contact@emersion.fr>2019-04-26 20:56:48 +0300
commite6fbb3c6bbeca0b562de528008f3f6bd6cf29f4d (patch)
treec650e040e7b65561fb07ed6033577fcbde725ade /sway/config.c
parentc42497aca00a234679ca5dc2884ab40afe0d84ad (diff)
config: fix clang warning
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/config.c b/sway/config.c
index d4a4a2f7..64093aca 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -968,13 +968,12 @@ static void translate_binding_list(list_t *bindings, list_t *bindsyms,
struct sway_binding *binding = bindings->items[i];
translate_binding(binding);
- list_t *bindings;
switch (binding->type) {
case BINDING_KEYSYM:
- bindings = bindsyms;
+ binding_add_translated(binding, bindsyms);
break;
case BINDING_KEYCODE:
- bindings = bindcodes;
+ binding_add_translated(binding, bindcodes);
break;
default:
sway_assert(false, "unexpected translated binding type: %d",
@@ -982,7 +981,6 @@ static void translate_binding_list(list_t *bindings, list_t *bindsyms,
break;
}
- binding_add_translated(binding, bindings);
}
}