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:
committed by
Gerald (Jerry) Carter
parent
3b707b9289
commit
ae7b073af3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user