diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-11-14 11:33:05 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-11-14 12:54:51 +0100 |
commit | 7b7d9354782420dcaa02969885eb2fb832fb12d9 (patch) | |
tree | 40b1fca8f3767b411c69a63941b35c4b65717f88 /sal/osl | |
parent | 16e3b84d2e04cc3e976b59ca4cecd59ca1577cbc (diff) |
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>
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/process.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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*) )); } |