r9566: fix an uninitialised variable
authorAndrew Tridgell <tridge@samba.org>
Wed, 24 Aug 2005 08:28:49 +0000 (08:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:34:29 +0000 (13:34 -0500)
source/scripting/ejs/smbcalls_ldb.c

index 7d268d09f614d0c3559ff801aca166df0ae42bfe..899cba546026fda654eb49eb3c46bb66057d7116 100644 (file)
@@ -132,7 +132,7 @@ static int ejs_ldbAddModify(MprVarHandle eid, int argc, struct MprVar **argv,
        const char *ldifstring;
        struct ldb_context *ldb;
        struct ldb_ldif *ldif;
-       int ret;
+       int ret = 0;
 
        if (argc != 1) {
                ejsSetErrorMsg(eid, "ldb.add/modify invalid arguments");