summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xplist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xplist.c b/src/xplist.c
index e0d3768..0b803cf 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -227,6 +227,9 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node)
{
xmlNodePtr node = NULL;
+ if (!xml_node)
+ return;
+
for (node = xml_node->children; node; node = node->next) {
while (node && !xmlStrcmp(node->name, XPLIST_TEXT))