summaryrefslogtreecommitdiff
path: root/source4/lib/appweb/ejs
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2005-08-16 00:01:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:23 -0500
commit56aadf82af5e3c5feeeb0dc5a5c14fc6967b4336 (patch)
tree80ab452475ae977534029b2c2afdbaf8edd67a65 /source4/lib/appweb/ejs
parentf9c7357d74d2c76cfb4046cb05e9533a0cb22303 (diff)
downloadsamba-56aadf82af5e3c5feeeb0dc5a5c14fc6967b4336.tar.gz
samba-56aadf82af5e3c5feeeb0dc5a5c14fc6967b4336.tar.bz2
samba-56aadf82af5e3c5feeeb0dc5a5c14fc6967b4336.zip
r9311: Missing null pointer check in ejsLib
Found by coverity (This used to be commit ae7b073af3d690275dbfa11c8406963702c57d3b)
Diffstat (limited to 'source4/lib/appweb/ejs')
-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;
}