]> git.sur5r.net Git - i3/i3/commitdiff
initialize last_keycode
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 19 Aug 2009 12:37:34 +0000 (14:37 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 19 Aug 2009 12:37:34 +0000 (14:37 +0200)
src/config.c

index 0bd67808d0c03cf60a9a4e8823a48105f1799ab7..a5f635dc5920eaf4c6a07591078cd5d39e5e9c6d 100644 (file)
@@ -113,7 +113,7 @@ void grab_all_keys(xcb_connection_t *conn) {
                         continue;
                 }
 
-                uint32_t last_keycode;
+                uint32_t last_keycode = 0;
                 bind->number_keycodes = 0;
                 for (xcb_keycode_t *walk = keycodes; *walk != 0; walk++) {
                         /* We hope duplicate keycodes will be returned in order