]> Dogcows Code - chaz/openbox/blobdiff - openbox/translate.c
make the ping hash tables work correctly. don't need to stop pinging, it will automa...
[chaz/openbox] / openbox / translate.c
index 210155789927eae576028c6e8af45d421eaa178f..c697679d1291fd03da7f0837f384ac1475f8e11f 100644 (file)
@@ -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)
This page took 0.022189 seconds and 4 git commands to generate.