diff options
Diffstat (limited to 'src/xplist.c')
-rw-r--r-- | src/xplist.c | 3 |
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)) |