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 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) { |