tdf#163486: PVS: Expression is always true

V560 	A part of conditional expression is always true: pArguments == nullptr.

Change-Id: I1fd44091173ed81cdb0c4a4e27e9408cb6a25e5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176578
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-14 11:33:05 +01:00
parent 16e3b84d2e
commit 7b7d935478

View file

@ -463,7 +463,7 @@ oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO(
pszWorkDir = szWorkDir;
}
if ( pArguments == nullptr && nArguments > 0 )
if ( nArguments > 0 )
{
pArguments = static_cast<char**>(malloc( ( nArguments + 2 ) * sizeof(char*) ));
}