summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/key-string.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/key-string.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/key-string.c')
-rw-r--r--usr.bin/tmux/key-string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/key-string.c b/usr.bin/tmux/key-string.c
index 838bfe64051..be03d06b17b 100644
--- a/usr.bin/tmux/key-string.c
+++ b/usr.bin/tmux/key-string.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key-string.c,v 1.30 2015/11/14 10:56:31 nicm Exp $ */
+/* $OpenBSD: key-string.c,v 1.31 2015/11/14 10:57:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -176,6 +176,7 @@ key_string_lookup_string(const char *string)
if (utf8_open(&ud, (u_char)*string)) {
if (strlen(string) != ud.size)
return (KEYC_NONE);
+ more = 1;
for (i = 1; i < ud.size; i++)
more = utf8_append(&ud, (u_char)string[i]);
if (more != 0)