artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af52b2a
)
Do not use the key variable uninitialized (in a debug log statement),
author
nicm
<nicm@openbsd.org>
Fri, 5 Jun 2015 15:10:13 +0000
(15:10 +0000)
committer
nicm
<nicm@openbsd.org>
Fri, 5 Jun 2015 15:10:13 +0000
(15:10 +0000)
reported by jungleboogie0 at gmail dot com.
usr.bin/tmux/tty-keys.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/tty-keys.c
b/usr.bin/tmux/tty-keys.c
index
ce38e7b
..
d16130c
100644
(file)
--- a/
usr.bin/tmux/tty-keys.c
+++ b/
usr.bin/tmux/tty-keys.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: tty-keys.c,v 1.7
2 2015/04/19 21:34:21
nicm Exp $ */
+/* $OpenBSD: tty-keys.c,v 1.7
3 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;