aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-01-25 13:18:05 -0500
committerMichael Terry <mike@mterry.name>2011-01-25 13:18:05 -0500
commit0cdd25e225a88a67fedeae4ddb9686213820ac2c (patch)
tree1980fd46990bccc3e675993fdec13e20d088c964
parent4bb9903a560f83b1b8a19c7801efab80d677ab46 (diff)
downloadlibdbusmenu-0cdd25e225a88a67fedeae4ddb9686213820ac2c.tar.gz
libdbusmenu-0cdd25e225a88a67fedeae4ddb9686213820ac2c.tar.bz2
libdbusmenu-0cdd25e225a88a67fedeae4ddb9686213820ac2c.zip
avoid critical warning from calling a function on a NULL pointer
-rw-r--r--libdbusmenu-glib/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 29ed4a0..a5fb1dd 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -1441,7 +1441,7 @@ parse_layout_xml(DbusmenuClient * client, xmlNodePtr node, DbusmenuMenuitem * it
/* We've got everything built up at this node and reconcilled */
/* Flush the properties requests if this is the first level */
- if (dbusmenu_menuitem_get_id(parent) == 0) {
+ if (parent != NULL && dbusmenu_menuitem_get_id(parent) == 0) {
get_properties_flush(client);
}