summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/appweb/ejs/ejsLib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/appweb/ejs/ejsLib.c b/source4/lib/appweb/ejs/ejsLib.c
index f6c004592b..af5ce52731 100644
--- a/source4/lib/appweb/ejs/ejsLib.c
+++ b/source4/lib/appweb/ejs/ejsLib.c
@@ -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;
}