From 0b7a27ea795b40669654abce42c194f01d455329 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 19 Aug 2009 14:37:34 +0200 Subject: [PATCH] initialize last_keycode --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5