summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-list-keys.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-07-08 15:18:20 +0000
committernicm <nicm@openbsd.org>2011-07-08 15:18:20 +0000
commitefdb4797a46d8bd48d37d0bc33c125a804e3b6ac (patch)
tree7017d25d6387e022cd37a5c715dbefff1593ac44 /usr.bin/tmux/cmd-list-keys.c
parentdo 1.174 correctly and remove (commented out) option PORTAL (diff)
downloadwireguard-openbsd-efdb4797a46d8bd48d37d0bc33c125a804e3b6ac.tar.xz
wireguard-openbsd-efdb4797a46d8bd48d37d0bc33c125a804e3b6ac.zip
flags[] should be initialized. From Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/cmd-list-keys.c')
-rw-r--r--usr.bin/tmux/cmd-list-keys.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-list-keys.c b/usr.bin/tmux/cmd-list-keys.c
index ef456c924af..5be616ebaa4 100644
--- a/usr.bin/tmux/cmd-list-keys.c
+++ b/usr.bin/tmux/cmd-list-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-keys.c,v 1.14 2011/07/04 00:31:57 nicm Exp $ */
+/* $OpenBSD: cmd-list-keys.c,v 1.15 2011/07/08 15:18:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -54,6 +54,8 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx)
return (cmd_list_keys_table(self, ctx));
width = 0;
+ *flags = '\0';
+
SPLAY_FOREACH(bd, key_bindings, &key_bindings) {
key = key_string_lookup_key(bd->key & ~KEYC_PREFIX);
if (key == NULL)