diff options
Diffstat (limited to 'common/eurephia_xml.c')
-rw-r--r-- | common/eurephia_xml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/eurephia_xml.c b/common/eurephia_xml.c index b166cb8..6fa1ee1 100644 --- a/common/eurephia_xml.c +++ b/common/eurephia_xml.c @@ -246,7 +246,10 @@ xmlNode *eurephiaXML_getRoot(eurephiaCTX *ctx, xmlDoc *doc, const char *nodeset, unsigned int eurephiaXML_IsResultMsg(eurephiaCTX *ctx, xmlDoc *resxml) { xmlNode *node = NULL; - assert( (ctx != NULL) && (resxml != NULL) ); + assert( ctx != NULL ); + if( resxml == NULL ) { + return 0; + } node = eurephiaXML_getRoot(ctx, resxml, "Result", 1); return (node != NULL ? 1 : 0); } |