From 4f4a21c899499c5bb8cc1b1ccccaf66a0f6ab65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 25 Jan 2014 20:29:16 +0000 Subject: [PATCH] coverity#1158251 Dereference before null check Change-Id: I724632f66d7ec64e165b039e8b9d8c43a9f5aaa7 --- cppu/source/uno/lbenv.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index a29d2498d31f..5b45be29d411 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -989,8 +989,7 @@ inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv ) (*pWeak->harden)( &pHard, pWeak ); if (pHard) { - if (pEnv) - (*pEnv->release)( pEnv ); + (*pEnv->release)( pEnv ); *ppEnv = pHard; } else // registered one is dead