From b8a04dae7e6bf2562cd65ef3e1dd438df9ea0394 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Fri, 28 Dec 2012 10:22:30 +0000 Subject: [PATCH] Explicit NULL check makes no sense when validating against array of known handles (pointers) --- src/jrd/Database.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jrd/Database.h b/src/jrd/Database.h index 7d19b1e6e2..32f97f2766 100644 --- a/src/jrd/Database.h +++ b/src/jrd/Database.h @@ -380,7 +380,7 @@ public: bool checkHandle() const { - if (!this || !isKnownHandle()) + if (!isKnownHandle()) return false; mutex()->release();