diff options
author | Noriko Hosoi <nhosoi@kiki.usersys.redhat.com> | 2009-06-01 11:09:53 -0700 |
---|---|---|
committer | Noriko Hosoi <nhosoi@kiki.usersys.redhat.com> | 2009-06-01 11:09:53 -0700 |
commit | d7828f54c12f0c50e7165f8d7e849f8ffa3ff167 (patch) | |
tree | 80237e7e6233fdb44e0c3d8b82b2645a5b1b4316 /ldap/servers/slapd/back-ldbm/ldbm_modify.c | |
parent | e36fcec6d950634ab65d22199f1ea4cc5bed8dea (diff) | |
download | ds-d7828f54c12f0c50e7165f8d7e849f8ffa3ff167.tar.gz ds-d7828f54c12f0c50e7165f8d7e849f8ffa3ff167.tar.xz ds-d7828f54c12f0c50e7165f8d7e849f8ffa3ff167.zip |
Initialize smods in ldmb_back_modify
To avoid unnecessary ldap_mods_free for the early error_returns
which could be called before mods are set to smods.
Diffstat (limited to 'ldap/servers/slapd/back-ldbm/ldbm_modify.c')
-rw-r--r-- | ldap/servers/slapd/back-ldbm/ldbm_modify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_modify.c b/ldap/servers/slapd/back-ldbm/ldbm_modify.c index 1cbe92de..e85443d7 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_modify.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_modify.c @@ -188,7 +188,7 @@ ldbm_back_modify( Slapi_PBlock *pb ) struct backentry *e, *ec = NULL; Slapi_Entry *postentry = NULL; LDAPMod **mods; - Slapi_Mods smods; + Slapi_Mods smods = {0}; back_txn txn; back_txnid parent_txn; int retval = -1; |