summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-09-27 00:43:11 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-09-27 00:43:11 +0200
commit226a9978640463b41730b1f4979d60da67b9397c (patch)
tree94c6bdc5e658bfd4cf59fd11a069f194af19743d /common
parentf29fa07b6b341cd222c827c79ff7c057786964b1 (diff)
downloadeurephia-226a9978640463b41730b1f4979d60da67b9397c.tar.gz
eurephia-226a9978640463b41730b1f4979d60da67b9397c.tar.xz
eurephia-226a9978640463b41730b1f4979d60da67b9397c.zip
Make eurephiaXML_ParserResultMsg() return NULL if input XML document pointer is NULL
Diffstat (limited to 'common')
-rw-r--r--common/eurephia_xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/eurephia_xml.c b/common/eurephia_xml.c
index 6fa1ee1..d47ef85 100644
--- a/common/eurephia_xml.c
+++ b/common/eurephia_xml.c
@@ -272,7 +272,10 @@ eurephiaRESULT *eurephiaXML_ParseResultMsg(eurephiaCTX *ctx, xmlDoc *resxml) {
xmlNode *res_n = NULL;
char *str = NULL;
- assert( (ctx != NULL) && (resxml != NULL) );
+ assert( ctx != NULL );
+ if( resxml == NULL ) {
+ return NULL;
+ }
res_n = eurephiaXML_getRoot(ctx, resxml, "Result", 1);
if( res_n == NULL) {