summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keyevents.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 8e66521..5b57893 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -44,8 +44,10 @@ static void feh_set_parse_kb_partial(fehkey *key, int index, char *ks) {
char *cur = ks;
int mod = 0;
- if (!*ks)
+ if (!*ks) {
+ key->keysyms[index] = 0;
return;
+ }
if (ks[1] == '-') {
switch (ks[0]) {