From d4b16c981d622a3eed715872b53f928303ba5b17 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 22 Sep 2020 22:12:00 +0300 Subject: [PATCH] mdbx: fix minor Coverity warning. Change-Id: Id92d85a7032a20a4b06d87878e32d8997b6558e3 --- src/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 1c044f37..5a5bc85b 100644 --- a/src/core.c +++ b/src/core.c @@ -3994,7 +3994,8 @@ static int mdbx_page_loose(MDBX_txn *txn, MDBX_page *mp) { mdbx_debug("loosen page %" PRIaPGNO, pgno); const bool is_dirty = IS_DIRTY(mp); - if (MDBX_DEBUG || unlikely((txn->mt_env->me_flags & MDBX_PAGEPERTURB) != 0)) { + if (MDBX_DEBUG != 0 || + unlikely((txn->mt_env->me_flags & MDBX_PAGEPERTURB) != 0)) { mdbx_kill_page(txn->mt_env, mp, pgno, npages); VALGRIND_MAKE_MEM_UNDEFINED(mp, PAGEHDRSZ); }