ITS#8321 fix mdb_cursor_chk()

It was reporting spurious errors due to uninit'd cursors
vl32b
Howard Chu 9 years ago
parent 3b9f857d8b
commit 88ac698707
  1. 2
      libraries/liblmdb/mdb.c

@ -1673,7 +1673,7 @@ mdb_cursor_chk(MDB_cursor *mc)
MDB_node *node; MDB_node *node;
MDB_page *mp; MDB_page *mp;
if (!mc->mc_snum && !(mc->mc_flags & C_INITIALIZED)) return; if (!mc->mc_snum || !(mc->mc_flags & C_INITIALIZED)) return;
for (i=0; i<mc->mc_top; i++) { for (i=0; i<mc->mc_top; i++) {
mp = mc->mc_pg[i]; mp = mc->mc_pg[i];
node = NODEPTR(mp, mc->mc_ki[i]); node = NODEPTR(mp, mc->mc_ki[i]);

Loading…
Cancel
Save