coverity#1158251 Dereference before null check
Change-Id: I724632f66d7ec64e165b039e8b9d8c43a9f5aaa7
This commit is contained in:
@@ -989,7 +989,6 @@ inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv )
|
|||||||
(*pWeak->harden)( &pHard, pWeak );
|
(*pWeak->harden)( &pHard, pWeak );
|
||||||
if (pHard)
|
if (pHard)
|
||||||
{
|
{
|
||||||
if (pEnv)
|
|
||||||
(*pEnv->release)( pEnv );
|
(*pEnv->release)( pEnv );
|
||||||
*ppEnv = pHard;
|
*ppEnv = pHard;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user