summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-01-19 20:54:50 +0100
committerGravatar Jonathan Beck2009-01-19 20:54:50 +0100
commit8da4dac2e65778d1f562f4502c09b16590cfd8e1 (patch)
tree0299ac34e3b59b557e08a4aa78bc98337c41f929 /src
parent0b89580643efb99dbdf24f4d0c6eed4857a7e6c6 (diff)
downloadlibplist-8da4dac2e65778d1f562f4502c09b16590cfd8e1.tar.gz
libplist-8da4dac2e65778d1f562f4502c09b16590cfd8e1.tar.bz2
add sanity check.
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))