summaryrefslogtreecommitdiff
path: root/src/lib/eldbus/eldbus_introspection.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-10 23:35:44 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-11 12:47:38 +0100
commitcb513df3775ce5e4d8fa40b9981a0944bfca4598 (patch)
treeb6cf1fbaaba4284df4846d6fec69e0ada9b19015 /src/lib/eldbus/eldbus_introspection.c
parent9e94115ab321bd0cde76bab51d1afb42a9be9a0f (diff)
eldbus - fix null node last on introspection parse
this fixes CID 1402721
Diffstat (limited to 'src/lib/eldbus/eldbus_introspection.c')
-rw-r--r--src/lib/eldbus/eldbus_introspection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eldbus/eldbus_introspection.c b/src/lib/eldbus/eldbus_introspection.c
index 98ea865..1e294a9 100644
--- a/src/lib/eldbus/eldbus_introspection.c
+++ b/src/lib/eldbus/eldbus_introspection.c
@@ -39,6 +39,7 @@ eldbus_introspection_parse(const char *xml)
39 xml_root = eina_simple_xml_node_load(xml, strlen(xml), EINA_TRUE); 39 xml_root = eina_simple_xml_node_load(xml, strlen(xml), EINA_TRUE);
40 if (xml_root && xml_root->children) last = xml_root->children->last; 40 if (xml_root && xml_root->children) last = xml_root->children->last;
41 xml_node = (Eina_Simple_XML_Node *)last; 41 xml_node = (Eina_Simple_XML_Node *)last;
42 if (!xml_node) goto free_root;
42 EINA_SAFETY_ON_FALSE_GOTO(EINA_SIMPLE_XML_NODE_TAG == xml_node->type, free_root); 43 EINA_SAFETY_ON_FALSE_GOTO(EINA_SIMPLE_XML_NODE_TAG == xml_node->type, free_root);
43 44
44 node = (Eldbus_Introspection_Node*)_eldbus_introspection_parse_node((Eina_Simple_XML_Node_Tag*)xml_node); 45 node = (Eldbus_Introspection_Node*)_eldbus_introspection_parse_node((Eina_Simple_XML_Node_Tag*)xml_node);