summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/events.c1
-rw-r--r--src/keyevents.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/events.c b/src/events.c
index c5032a1..23a14ba 100644
--- a/src/events.c
+++ b/src/events.c
@@ -128,6 +128,7 @@ void init_buttonbindings(void)
while (fgets(line, sizeof(line), conf)) {
*action = '\0';
*button = '\0';
+ cur_bb = NULL;
read = sscanf(line, "%31s %7s\n", (char *) &action, (char *) &button);
diff --git a/src/keyevents.c b/src/keyevents.c
index ba15a5d..8977111 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -178,6 +178,7 @@ void init_keyevents(void) {
*k1 = '\0';
*k2 = '\0';
*k3 = '\0';
+ cur_kb = NULL;
read = sscanf(line, "%31s %31s %31s %31s\n",
(char *) &action, (char *) &k1, (char* ) &k2, (char *) &k3);