From 0952cfdf84d926da5e6ba984fa55b3ab5a2ef9aa Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 28 Mar 2012 09:33:06 -0700 Subject: [PATCH] Fix uninit'd xcursor index --- libraries/libmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index a44b631..6eff56c 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;