sal/osl/unx/process.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7b7d9354782420dcaa02969885eb2fb832fb12d9 Author: Xisco Fauli <[email protected]> AuthorDate: Thu Nov 14 11:33:05 2024 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Nov 14 12:54:51 2024 +0100 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 <[email protected]> diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx index cebdc6f35fdb..13320263c65a 100644 --- a/sal/osl/unx/process.cxx +++ b/sal/osl/unx/process.cxx @@ -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*) )); }
