diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-04-21 22:01:14 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-04-21 22:01:14 +0100 |
commit | fd13731049148d0205fa6ed1843041dad0573677 (patch) | |
tree | 7cfc3571a33e9332b95b0805522c19d0bf59de2a /key-bindings.c | |
parent | 1f209ed030f9879d873d10341171889af08ae070 (diff) | |
parent | c68ceca8cd4294c2b9991aa1884d58258596868f (diff) | |
download | rtmux-fd13731049148d0205fa6ed1843041dad0573677.tar.gz rtmux-fd13731049148d0205fa6ed1843041dad0573677.tar.bz2 rtmux-fd13731049148d0205fa6ed1843041dad0573677.zip |
Merge branch 'obsd-master'
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); |