mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix some uninitialized variables
This commit is contained in:
parent
c108e66222
commit
11d884b8cf
@ -121,7 +121,6 @@ int bdb_id2entry_delete(
|
|||||||
struct bdb_info *bdb = (struct bdb_info *) be->be_private;
|
struct bdb_info *bdb = (struct bdb_info *) be->be_private;
|
||||||
DB *db = bdb->bi_id2entry->bdi_db;
|
DB *db = bdb->bi_id2entry->bdi_db;
|
||||||
DBT key;
|
DBT key;
|
||||||
struct berval *bv;
|
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
DBTzero( &key );
|
DBTzero( &key );
|
||||||
@ -130,7 +129,6 @@ int bdb_id2entry_delete(
|
|||||||
|
|
||||||
rc = db->del( db, tid, &key, 0 );
|
rc = db->del( db, tid, &key, 0 );
|
||||||
|
|
||||||
ber_bvfree( bv );
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ bdb_modrdn(
|
|||||||
const char *text;
|
const char *text;
|
||||||
char textbuf[SLAP_TEXT_BUFLEN];
|
char textbuf[SLAP_TEXT_BUFLEN];
|
||||||
size_t textlen = sizeof textbuf;
|
size_t textlen = sizeof textbuf;
|
||||||
DB_TXN * ltid;
|
DB_TXN * ltid = NULL;
|
||||||
struct bdb_op_info opinfo;
|
struct bdb_op_info opinfo;
|
||||||
|
|
||||||
ID id;
|
ID id;
|
||||||
|
Loading…
Reference in New Issue
Block a user