diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-06-05 15:10:14 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-06-05 15:10:14 +0000 |
commit | d29f8267e5fbf298f4cbaeaa63d63b14c9aa85c0 (patch) | |
tree | d32e49e662fc3f3795dec4be79f2450c6727fdb5 /usr.bin | |
parent | 856869f25b1cdbe1ceb0fcc60b1b7e6405104d45 (diff) |
Do not use the key variable uninitialized (in a debug log statement),
reported by jungleboogie0 at gmail dot com.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index ce38e7bc345..d16130cf499 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.72 2015/04/19 21:34:21 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.73 2015/06/05 15:10:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |