diff options
author | 2011-07-08 15:18:20 +0000 | |
---|---|---|
committer | 2011-07-08 15:18:20 +0000 | |
commit | efdb4797a46d8bd48d37d0bc33c125a804e3b6ac (patch) | |
tree | 7017d25d6387e022cd37a5c715dbefff1593ac44 /usr.bin/tmux/cmd-list-keys.c | |
parent | do 1.174 correctly and remove (commented out) option PORTAL (diff) | |
download | wireguard-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.c | 4 |
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) |