summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-16 17:37:00 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-16 17:37:00 +0100
commited3cb6b0b7b5b30bb40aec8aca5d5d49505fa0f2 (patch)
tree7b1db440c3ff7fe3dcdc7a68b863d8026ffa134f /src
parent107ad1872359378dd1f67a75f7a4cf6795df7a05 (diff)
feh/keys: Allow action unbinding
Diffstat (limited to 'src')
-rw-r--r--src/keyevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 7af3e0d..09b520d 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -177,7 +177,7 @@ void init_keyevents(void) {
read = sscanf(line, "%31s %31s %31s %31s\n",
(char *) &action, (char *) &k1, (char* ) &k2, (char *) &k3);
- if ((read == EOF) || (read < 2) || (line[0] == '#'))
+ if ((read == EOF) || (read == 0) || (line[0] == '#'))
continue;
if (!strcmp(action, "menu_close"))