diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-26 00:11:49 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-26 00:11:49 +0200 |
commit | 80ac48189fea2cdb791ff1fb1fcfa5a08294f518 (patch) | |
tree | fc7544b3bf7ac72af1683a71c9c8d006cf638eaa /common | |
parent | c5b18651304e6b80a3ac3c440b99fcbd27153b93 (diff) | |
download | eurephia-80ac48189fea2cdb791ff1fb1fcfa5a08294f518.tar.gz eurephia-80ac48189fea2cdb791ff1fb1fcfa5a08294f518.tar.xz eurephia-80ac48189fea2cdb791ff1fb1fcfa5a08294f518.zip |
Added extra check on node pointer, to avoid possible SEGV
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; } |