Permalink
Browse files

Fix crash when keyboard map changes and no keybindings exist.

Don't assume old tree is non-null and start rebinding it.
  • Loading branch information...
danakj committed Oct 14, 2011
1 parent c885c9a commit e4e7c2be52ee1a0b75d9d2feff57fdc992fedb9b
Showing with 2 additions and 1 deletion.
  1. +2 −1 openbox/keyboard.c
View
@@ -313,7 +313,8 @@ void keyboard_rebind(void)
old = keyboard_firstnode;
keyboard_firstnode = NULL;
- node_rebind(old);
+ if (old)
+ node_rebind(old);
tree_destroy(old);
set_curpos(NULL);

0 comments on commit e4e7c2b

Please sign in to comment.