summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 8e7251d..f3a6624 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -162,7 +162,7 @@ void init_keyevents(void) {
free(confpath);
- if (!conf)
+ if (!conf && ((conf = fopen("/etc/feh/keys", "r")) == NULL))
return;
while (fgets(line, sizeof(line), conf)) {