summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2015-06-05 15:10:13 +0000
committernicm <nicm>2015-06-05 15:10:13 +0000
commitb0782df8a64f744b7c067e6f918ce5217ea09e57 (patch)
treeb1b30c7cb0a089e6d00788f31d3e430a6314fa3d /tty-keys.c
parent2f586905fc7dc4a3f65a1bca1ad94e28ffc3508d (diff)
Do not use the key variable uninitialized (in a debug log statement),
reported by jungleboogie0 at gmail dot com.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 1df22d4c..75e06526 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -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;