PVS: V560 A part of conditional expression is always true: bSuccess

Since
commit 217ef2ed9b
Author: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Date:   Mon Jan 23 12:32:25 2023 +0900

    pdfimport: refactor pdf and hybrid format detection code

Change-Id: Ib8bd09417eb07bd395b38a04245de30e8abda5a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177408
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-27 12:31:12 +01:00
parent 785a56b6be
commit 45a7c21ed8

View file

@ -316,7 +316,7 @@ OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue >& rF
oslFileHandle aFileHandle = nullptr;
// check for hybrid PDF
if (bSuccess && (aURL.isEmpty() || !comphelper::isFileUrl(aURL)))
if (aURL.isEmpty() || !comphelper::isFileUrl(aURL))
{
if (osl_createTempFile(nullptr, &aFileHandle, &aURL.pData) != osl_File_E_None)
{