summaryrefslogtreecommitdiff
path: root/openbox/translate.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/translate.c')
-rw-r--r--openbox/translate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/translate.c b/openbox/translate.c
index 21015578..c697679d 100644
--- a/openbox/translate.c
+++ b/openbox/translate.c
@@ -20,6 +20,7 @@
#include "openbox.h"
#include "mouse.h"
#include "modkeys.h"
+#include "translate.h"
#include "gettext.h"
#include <glib.h>
#include <string.h>
@@ -111,6 +112,8 @@ gboolean translate_key(const gchar *str, guint *state, guint *keycode)
parsed = g_strsplit(str, "-", -1);
+ *state = *keycode = 0;
+
/* first, find the key (last token) */
l = NULL;
for (i = 0; parsed[i] != NULL; ++i)