1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-13 16:23:50 +03:00

r9311: Missing null pointer check in ejsLib

Found by coverity
This commit is contained in:
Steve French
2005-08-16 00:01:25 +00:00
committed by Gerald (Jerry) Carter
parent 3b707b9289
commit ae7b073af3

View File

@@ -327,7 +327,8 @@ int ejsEvalFile(EjsId eid, char *path, MprVar *result, char **emsg)
* Error return
*/
error:
*emsg = mprStrdup(ep->error);
if(emsg)
*emsg = mprStrdup(ep->error);
return -1;
}