Fix crash when keyboard map changes and no keybindings exist.

Don't assume old tree is non-null and start rebinding it.
This commit is contained in:
Dana Jansens 2011-10-14 16:43:18 -04:00
parent c885c9a676
commit e4e7c2be52

View file

@ -313,6 +313,7 @@ void keyboard_rebind(void)
old = keyboard_firstnode;
keyboard_firstnode = NULL;
if (old)
node_rebind(old);
tree_destroy(old);