From: Michael Stapelberg Date: Wed, 19 Aug 2009 12:37:34 +0000 (+0200) Subject: initialize last_keycode X-Git-Tag: 3.c~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b7a27ea795b40669654abce42c194f01d455329;p=i3%2Fi3 initialize last_keycode --- diff --git a/src/config.c b/src/config.c index 0bd67808..a5f635dc 100644 --- a/src/config.c +++ b/src/config.c @@ -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