Author: sfrench
Date: 2005-08-16 00:01:25 +0000 (Tue, 16 Aug 2005)
New Revision: 9311

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9311

Log:
Missing  null pointer check in ejsLib

Found by coverity

Modified:
   branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c
===================================================================
--- branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c   2005-08-15 23:52:15 UTC 
(rev 9310)
+++ branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLib.c   2005-08-16 00:01:25 UTC 
(rev 9311)
@@ -327,7 +327,8 @@
  *     Error return
  */
 error:
-       *emsg = mprStrdup(ep->error);
+       if(emsg)
+               *emsg = mprStrdup(ep->error);
        return -1;
 }
 

Reply via email to