all repos — openbox @ aa5394cad2dc0bac46631e29005cbc7b99d03330

openbox fork - make it a bit more like ryudo

Check node->name for null

Seems to happen sometimes with a well placed xml comment.
Mikael Magnusson mikachu@gmail.com
commit

aa5394cad2dc0bac46631e29005cbc7b99d03330

parent

35ce211ec3ba025b67b5b91ecf10c1b1b2294a43

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M obt/xml.cobt/xml.c

@@ -300,8 +300,10 @@ {

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; } }