diff options
author | nicm <nicm> | 2017-04-21 19:33:07 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-04-21 19:33:07 +0000 |
commit | 2ad09ab5af530ceb5fbbbe53ea99a73ef9ddbe49 (patch) | |
tree | 9f3598509eac281d9dfdd35bde247e4c2bef0e9d /key-bindings.c | |
parent | 3c876235cc2d0d36f961e1f026f9feaf5cd22b73 (diff) | |
download | rtmux-2ad09ab5af530ceb5fbbbe53ea99a73ef9ddbe49.tar.gz rtmux-2ad09ab5af530ceb5fbbbe53ea99a73ef9ddbe49.tar.bz2 rtmux-2ad09ab5af530ceb5fbbbe53ea99a73ef9ddbe49.zip |
Key needs to be initialized to zero now it has flags in it.
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); |