From: Howard Chu Date: Wed, 28 Mar 2012 16:33:06 +0000 (-0700) Subject: Fix uninit'd xcursor index X-Git-Tag: OPENLDAP_REL_ENG_2_4_32~125^2~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0952cfdf84d926da5e6ba984fa55b3ab5a2ef9aa;p=openldap Fix uninit'd xcursor index --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index a44b631333..6eff56cdbf 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -4829,6 +4829,7 @@ mdb_xcursor_init0(MDB_cursor *mc) mx->mx_cursor.mc_dbi = mc->mc_dbi+1; mx->mx_cursor.mc_dbflag = &mx->mx_dbflag; mx->mx_cursor.mc_snum = 0; + mx->mx_cursor.mc_top = 0; mx->mx_cursor.mc_flags = C_SUB; mx->mx_dbx.md_cmp = mc->mc_dbx->md_dcmp; mx->mx_dbx.md_dcmp = NULL;