Key needs to be initialized to zero now it has flags in it.

This commit is contained in:
nicm
2017-04-21 19:33:07 +00:00
parent 3c876235cc
commit 2ad09ab5af
2 changed files with 3 additions and 1 deletions

View File

@ -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);