Commit 8da4dac2 authored by Jonathan Beck's avatar Jonathan Beck

add sanity check.

parent 0b895806
...@@ -227,6 +227,9 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node) ...@@ -227,6 +227,9 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node)
{ {
xmlNodePtr node = NULL; xmlNodePtr node = NULL;
if (!xml_node)
return;
for (node = xml_node->children; node; node = node->next) { for (node = xml_node->children; node; node = node->next) {
while (node && !xmlStrcmp(node->name, XPLIST_TEXT)) while (node && !xmlStrcmp(node->name, XPLIST_TEXT))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment