summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty-keys.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-11-14 10:57:59 +0000
committernicm <nicm@openbsd.org>2015-11-14 10:57:59 +0000
commit1f3e321e77d7d3414ce8022e8ec336717b76314e (patch)
tree76642845d6b45fc117743e9dc6f8205f0caa8b03 /usr.bin/tmux/tty-keys.c
parentBe more strict about invalid UTF-8. (diff)
downloadwireguard-openbsd-1f3e321e77d7d3414ce8022e8ec336717b76314e.tar.xz
wireguard-openbsd-1f3e321e77d7d3414ce8022e8ec336717b76314e.zip
Couple of assignments to remove compiler warnings.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r--usr.bin/tmux/tty-keys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c
index e58e01e9570..6d9424997e9 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.78 2015/11/14 10:56:31 nicm Exp $ */
+/* $OpenBSD: tty-keys.c,v 1.79 2015/11/14 10:57:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -546,6 +546,7 @@ first_key:
goto discard_key;
goto partial_key;
}
+ more = 1;
for (i = 1; i < size; i++)
more = utf8_append(&ud, (u_char)buf[i]);
if (more != 0)