]> Dogcows Code - chaz/openbox/commitdiff
Fix crash when keyboard map changes and no keybindings exist.
authorDana Jansens <danakj@orodu.net>
Fri, 14 Oct 2011 20:43:18 +0000 (16:43 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:51:51 +0000 (18:51 -0400)
Don't assume old tree is non-null and start rebinding it.

openbox/keyboard.c

index 5b8016dd9d6b5a98d773336459514c3b314a3885..8f4424ea97d43c8c233b69886def08c1f9e5396f 100644 (file)
@@ -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);
This page took 0.019002 seconds and 4 git commands to generate.