diff options
Diffstat (limited to 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 2 |
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); |