coverity#1158251 Dereference before null check

Change-Id: I724632f66d7ec64e165b039e8b9d8c43a9f5aaa7
This commit is contained in:
Caolán McNamara
2014-01-25 20:29:16 +00:00
parent 6a52e7c94a
commit 4f4a21c899

View File

@@ -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