summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-21 19:33:07 +0000
committernicm <nicm>2017-04-21 19:33:07 +0000
commit2ad09ab5af530ceb5fbbbe53ea99a73ef9ddbe49 (patch)
tree9f3598509eac281d9dfdd35bde247e4c2bef0e9d /key-bindings.c
parent3c876235cc2d0d36f961e1f026f9feaf5cd22b73 (diff)
Key needs to be initialized to zero now it has flags in it.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c
index ae7afb71..60dbe544 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -100,7 +100,7 @@ key_bindings_add(const char *name, key_code key, int repeat,
free(bd);
}
- bd = xmalloc(sizeof *bd);
+ bd = xcalloc(1, sizeof *bd);
bd->key = key;
RB_INSERT(key_bindings, &table->key_bindings, bd);