From 80ac48189fea2cdb791ff1fb1fcfa5a08294f518 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Sat, 26 Sep 2009 00:11:49 +0200 Subject: Added extra check on node pointer, to avoid possible SEGV --- common/eurephia_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/eurephia_xml.c b/common/eurephia_xml.c index 0dc42ae..b166cb8 100644 --- a/common/eurephia_xml.c +++ b/common/eurephia_xml.c @@ -81,7 +81,7 @@ xmlNode *xmlFindNode(xmlNode *node, const char *key) { xmlNode *nptr = NULL; xmlChar *x_key = NULL; - if( node->children == NULL ) { + if( (node == NULL) || (node->children == NULL) ) { return NULL; } -- cgit