]> git.sur5r.net Git - openldap/commitdiff
Cleanup uninit'd vars
authorHoward Chu <hyc@openldap.org>
Tue, 1 Aug 2017 20:47:15 +0000 (21:47 +0100)
committerHoward Chu <hyc@openldap.org>
Tue, 1 Aug 2017 20:47:15 +0000 (21:47 +0100)
servers/slapd/back-mdb/modify.c
servers/slapd/back-mdb/search.c

index 6de49c29efc863158687f194b79a67812c945cde..7bfdb5cd58a557b2d9fdcdcb205ea5a5880727eb 100644 (file)
@@ -329,6 +329,7 @@ do_del:
                         */
                        mod->sm_op = LDAP_MOD_ADD;
                        softop = 1;
+                       chkpresent = 0;
                        goto do_add;
 
                case SLAP_MOD_SOFTDEL:
@@ -356,6 +357,7 @@ do_del:
                         * We need to add index if necessary.
                         */
                        mod->sm_op = LDAP_MOD_ADD;
+                       softop = 0;
                        chkpresent = 1;
                        goto do_add;
 
index 43442aa242216e70b9aac894d59aac82e3cbf97f..8e06326780d159c881a70229a77fac8a33339d9c 100644 (file)
@@ -710,6 +710,7 @@ dn2entry_retry:
        }
 
        wwctx.flag = 0;
+       wwctx.nentries = 0;
        /* If we're running in our own read txn */
        if (  moi == &opinfo ) {
                cb.sc_writewait = mdb_writewait;