]> Dogcows Code - chaz/openbox/blobdiff - obt/xml.c
Check node->name for null
[chaz/openbox] / obt / xml.c
index 92e234306fbaaf201f7475623b644a0e1c469c82..da3e866b6f5ea452ded04a1692335200597a0b06 100644 (file)
--- a/obt/xml.c
+++ b/obt/xml.c
@@ -300,8 +300,10 @@ void obt_xml_tree(ObtXmlInst *i, xmlNodePtr node)
     g_assert(i->doc); /* a doc is open? */
 
     while (node) {
-        struct Callback *c = g_hash_table_lookup(i->callbacks, node->name);
-        if (c) c->func(node, c->data);
+        if (node->name) {
+            struct Callback *c = g_hash_table_lookup(i->callbacks, node->name);
+            if (c) c->func(node, c->data);
+        }
         node = node->next;
     }
 }
This page took 0.01642 seconds and 4 git commands to generate.