initialize last_keycode

This commit is contained in:
Michael Stapelberg 2009-08-19 14:37:34 +02:00
parent 4be7a34470
commit 0b7a27ea79
1 changed files with 1 additions and 1 deletions

View 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