coverity#1158251 Dereference before null check
Change-Id: I724632f66d7ec64e165b039e8b9d8c43a9f5aaa7
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user