From: Howard Chu Date: Wed, 18 Mar 2015 19:26:21 +0000 (+0000) Subject: ITS#8062 fix uninit'd cursor index X-Git-Tag: LMDB_0.9.15~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dce0911b17beb16bcb44c86cc75a071cb6dfed3d;p=openldap ITS#8062 fix uninit'd cursor index --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index c2ce4c4c6e..360c71ff6e 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -7088,6 +7088,7 @@ mdb_cursor_init(MDB_cursor *mc, MDB_txn *txn, MDB_dbi dbi, MDB_xcursor *mx) mc->mc_snum = 0; mc->mc_top = 0; mc->mc_pg[0] = 0; + mc->mc_ki[0] = 0; mc->mc_flags = 0; if (txn->mt_dbs[dbi].md_flags & MDB_DUPSORT) { mdb_tassert(txn, mx != NULL);