diff options
author | Ted Gould <ted@gould.cx> | 2010-05-20 13:36:53 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-05-20 13:36:53 -0500 |
commit | cc2773830760a016ec1b5c5af230fcd9114d267c (patch) | |
tree | a069859d98768bd4cf25d948c29b9de7ffe8d247 /libdbusmenu-glib/client.c | |
parent | 6a4ae9bdcd09926f48ffd5f8677c11cd28cff0f1 (diff) | |
parent | 5b82d2c3bc65418c2c4eb35e4a12556292c195ee (diff) | |
download | libdbusmenu-cc2773830760a016ec1b5c5af230fcd9114d267c.tar.gz libdbusmenu-cc2773830760a016ec1b5c5af230fcd9114d267c.tar.bz2 libdbusmenu-cc2773830760a016ec1b5c5af230fcd9114d267c.zip |
Sync to trunk
Diffstat (limited to 'libdbusmenu-glib/client.c')
-rw-r--r-- | libdbusmenu-glib/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index d2ba541..c0d3b7a 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -533,6 +533,9 @@ build_proxies (DbusmenuClient * client) static gint parse_node_get_id (xmlNodePtr node) { + if (node->type != XML_ELEMENT_NODE) { + return -1; + } if (g_strcmp0((gchar *)node->name, "menu") != 0) { /* This kills some nodes early */ g_warning("XML Node is not 'menu' it is '%s'", node->name); |