From: nicm Date: Fri, 5 Jun 2015 15:10:13 +0000 (+0000) Subject: Do not use the key variable uninitialized (in a debug log statement), X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=737b0b4764293a6a62748f5b546c07e19184246b;p=openbsd Do not use the key variable uninitialized (in a debug log statement), reported by jungleboogie0 at gmail dot com. --- 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 @@ -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;