From b9275c999117061fcbfce97e99600c1074c3e610 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 27 Nov 2012 23:56:47 +0100 Subject: [PATCH] mdb_cursor_dbi(): Assume valid args. It returned 0, which is the freelist DBI and is valid for a few uses. --- libraries/libmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index f7559b0..b11edb9 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -5586,7 +5586,7 @@ mdb_cursor_txn(MDB_cursor *mc) MDB_dbi mdb_cursor_dbi(MDB_cursor *mc) { - if (!mc) return 0; + assert(mc != NULL); return mc->mc_dbi; }