diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/eurephia_xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |