diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-07-08 15:18:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-07-08 15:18:20 +0000 |
commit | a8e9654b65c7b6de5240f9df23f0d12bca8e02ec (patch) | |
tree | 7aa1df81d3549a8952065d366a57a1e9849c9efb /cmd-list-keys.c | |
parent | 2de9b1e005be97c6f1acdd6e24803e01badff52c (diff) | |
download | rtmux-a8e9654b65c7b6de5240f9df23f0d12bca8e02ec.tar.gz rtmux-a8e9654b65c7b6de5240f9df23f0d12bca8e02ec.tar.bz2 rtmux-a8e9654b65c7b6de5240f9df23f0d12bca8e02ec.zip |
flags[] should be initialized. From Thomas Adam.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r-- | cmd-list-keys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c index 8838060e..6e359e5b 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -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) |