mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Do not use the key variable uninitialized (in a debug log statement),
reported by jungleboogie0 at gmail dot com.
This commit is contained in:
parent
2f586905fc
commit
b0782df8a6
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue