mdb_cursor_dbi(): Assume valid args.

It returned 0, which is the freelist DBI and is valid for a few uses.
vmware
Hallvard Furuseth 12 years ago
parent 7e620a34a2
commit b9275c9991
  1. 2
      libraries/libmdb/mdb.c

@ -5586,7 +5586,7 @@ mdb_cursor_txn(MDB_cursor *mc)
MDB_dbi MDB_dbi
mdb_cursor_dbi(MDB_cursor *mc) mdb_cursor_dbi(MDB_cursor *mc)
{ {
if (!mc) return 0; assert(mc != NULL);
return mc->mc_dbi; return mc->mc_dbi;
} }

Loading…
Cancel
Save