]> git.sur5r.net Git - openldap/commitdiff
Fix some uninitialized variables
authorHoward Chu <hyc@openldap.org>
Mon, 22 Oct 2001 15:57:58 +0000 (15:57 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 22 Oct 2001 15:57:58 +0000 (15:57 +0000)
servers/slapd/back-bdb/id2entry.c
servers/slapd/back-bdb/modrdn.c

index ba636bfe5896a1a049a082e256ac2eeee0beae58..2dfc2cb230741eec2e1e3769616cd799fe3bf05e 100644 (file)
@@ -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;
 }
 
index c628c98779f7b7c7c500a7b7f1ef2f189b7bdeaf..aba9cdfaddcff4726e6b9e4196e2ab06809e6a99 100644 (file)
@@ -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;