From: Hallvard Furuseth Date: Tue, 27 Nov 2012 22:56:47 +0000 (+0100) Subject: mdb_cursor_dbi(): Assume valid args. X-Git-Tag: OPENLDAP_REL_ENG_2_4_34~103^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b9275c999117061fcbfce97e99600c1074c3e610;p=openldap mdb_cursor_dbi(): Assume valid args. It returned 0, which is the freelist DBI and is valid for a few uses. --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index f7559b01a8..b11edb96f8 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; }