summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-03 21:15:48 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-03 21:28:24 +0100
commitd85108355c1802c7aed1ef1d9a19f6c633c4a0f8 (patch)
treebf5547132a44ceea5623a2943fe090a8c6ec3388 /sal
parenttdf#120703 PVS: V547 Expression is always true/false (diff)
downloadcore-d85108355c1802c7aed1ef1d9a19f6c633c4a0f8.tar.gz
core-d85108355c1802c7aed1ef1d9a19f6c633c4a0f8.zip
tdf#120703 PVS: V547 Expression is always true/false
Change-Id: I27bf92770431f6a1f35e1c8224c0847555a8d43f Reviewed-on: https://gerrit.libreoffice.org/62819 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/file_url.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx
index f34b437fefd2..28955cce4f3a 100644
--- a/sal/osl/w32/file_url.cxx
+++ b/sal/osl/w32/file_url.cxx
@@ -166,9 +166,6 @@ DWORD IsValidFilePath(rtl_uString *path, DWORD dwFlags, rtl_uString **corrected)
if ( dwFlags & VALIDATEPATH_ALLOW_RELATIVE )
dwFlags |= VALIDATEPATH_ALLOW_ELLIPSE;
- if ( !lpszPath )
- bValid = false;
-
DWORD dwCandidatPathType = PATHTYPE_ERROR;
if ( 0 == rtl_ustr_shortenedCompareIgnoreAsciiCase_WithLength( path->buffer, nLength, o3tl::toU(WSTR_LONG_PATH_PREFIX_UNC), SAL_N_ELEMENTS(WSTR_LONG_PATH_PREFIX_UNC) - 1, SAL_N_ELEMENTS(WSTR_LONG_PATH_PREFIX_UNC) - 1 ) )