From: Howard Chu Date: Wed, 30 May 2012 12:09:31 +0000 (-0700) Subject: ITS#7279 init rc in mdb_idl_insert_keys X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0296e6e3308ce29121bbf3d42fab864cf371df9;p=openldap ITS#7279 init rc in mdb_idl_insert_keys --- diff --git a/servers/slapd/back-mdb/idl.c b/servers/slapd/back-mdb/idl.c index 35623ad624..227c9802f9 100644 --- a/servers/slapd/back-mdb/idl.c +++ b/servers/slapd/back-mdb/idl.c @@ -398,7 +398,7 @@ mdb_idl_insert_keys( MDB_val key, data; ID lo, hi, *i; char *err; - int rc, k; + int rc = 0, k; unsigned int flag = MDB_NODUPDATA; #ifndef MISALIGNED_OK int kbuf[2]; @@ -546,7 +546,7 @@ mdb_idl_delete_keys( struct berval *keys, ID id ) { - int rc, k; + int rc = 0, k; MDB_val key, data; ID lo, hi, tmp, *i; char *err;