diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-07-08 16:44:06 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-07-08 16:44:06 +0000 |
commit | bcacbb1a895063a9681f3a3fac9c4fe284f9fc86 (patch) | |
tree | c56ee08c30e4718f5339f85a9c6de453301b3b84 /cmd-list-keys.c | |
parent | bba822105bb45ab998ebb7e8299ddc2b8989e672 (diff) |
Sync OpenBSD patchset 935:
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 c88bea2b..8f957c84 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) |