summaryrefslogtreecommitdiff
path: root/cppu/source/uno
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-25 20:29:16 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-25 20:56:31 +0000
commit4f4a21c899499c5bb8cc1b1ccccaf66a0f6ab65e (patch)
tree5dfec7219adb5f7aab7d5540151e2822696c7c3c /cppu/source/uno
parent6a52e7c94a09e285abff08a59f43ba8231f70af1 (diff)
coverity#1158251 Dereference before null check
Change-Id: I724632f66d7ec64e165b039e8b9d8c43a9f5aaa7
Diffstat (limited to 'cppu/source/uno')
-rw-r--r--cppu/source/uno/lbenv.cxx3
1 files changed, 1 insertions, 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