Do not use the key variable uninitialized (in a debug log statement),

reported by jungleboogie0 at gmail dot com.
pull/23/head
nicm 2015-06-05 15:10:13 +00:00
parent 2f586905fc
commit b0782df8a6
1 changed files with 1 additions and 0 deletions

View File

@ -501,6 +501,7 @@ tty_keys_next(struct tty *tty)
case -1: /* no, or not valid */
break;
case -2: /* yes, but we don't care. */
key = KEYC_MOUSE;
goto discard_key;
case 1: /* partial */
goto partial_key;