From 8da4dac2e65778d1f562f4502c09b16590cfd8e1 Mon Sep 17 00:00:00 2001
From: Jonathan Beck
Date: Mon, 19 Jan 2009 20:54:50 +0100
Subject: add sanity check.

---
 src/xplist.c | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src')

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))
-- 
cgit v1.1-32-gdbae