diff options
author | Jonathan Beck | 2009-01-19 20:54:50 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-01-19 20:54:50 +0100 |
commit | 8da4dac2e65778d1f562f4502c09b16590cfd8e1 (patch) | |
tree | 0299ac34e3b59b557e08a4aa78bc98337c41f929 /src/xplist.c | |
parent | 0b89580643efb99dbdf24f4d0c6eed4857a7e6c6 (diff) | |
download | libplist-8da4dac2e65778d1f562f4502c09b16590cfd8e1.tar.gz libplist-8da4dac2e65778d1f562f4502c09b16590cfd8e1.tar.bz2 |
add sanity check.
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)) |