From: Howard Chu Date: Mon, 22 Oct 2001 15:57:58 +0000 (+0000) Subject: Fix some uninitialized variables X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~949 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=11d884b8cfd24565a234fc6e35800ee6ec40d046;p=openldap Fix some uninitialized variables --- diff --git a/servers/slapd/back-bdb/id2entry.c b/servers/slapd/back-bdb/id2entry.c index ba636bfe58..2dfc2cb230 100644 --- a/servers/slapd/back-bdb/id2entry.c +++ b/servers/slapd/back-bdb/id2entry.c @@ -121,7 +121,6 @@ int bdb_id2entry_delete( struct bdb_info *bdb = (struct bdb_info *) be->be_private; DB *db = bdb->bi_id2entry->bdi_db; DBT key; - struct berval *bv; int rc; DBTzero( &key ); @@ -130,7 +129,6 @@ int bdb_id2entry_delete( rc = db->del( db, tid, &key, 0 ); - ber_bvfree( bv ); return rc; } diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index c628c98779..aba9cdfadd 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -35,7 +35,7 @@ bdb_modrdn( const char *text; char textbuf[SLAP_TEXT_BUFLEN]; size_t textlen = sizeof textbuf; - DB_TXN * ltid; + DB_TXN * ltid = NULL; struct bdb_op_info opinfo; ID id;