summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-02-07 11:55:24 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-02-11 07:07:30 +0100
commit121182bddbce8f14cccdf7db9af8c08867a0912f (patch)
treedbad1ab9b7a4a4ea0f5862ae1a8679aa117c8829 /sal
parent6e8c9bdf0a55141d3cbd181862aec89b788bb060 (diff)
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I67462369d93e9d9ff3c056800947c4b75f71ba5f Reviewed-on: https://gerrit.libreoffice.org/67486 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/uri.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/rtl/uri.cxx b/sal/rtl/uri.cxx
index baa806928238..07634c628de6 100644
--- a/sal/rtl/uri.cxx
+++ b/sal/rtl/uri.cxx
@@ -836,8 +836,7 @@ sal_Bool SAL_CALL rtl_uriConvertRelToAbs(rtl_uString * pBaseUriRef,
}
else
{
- if (aRelComponents.aPath.pBegin != aRelComponents.aPath.pEnd
- && *aRelComponents.aPath.pBegin == '/')
+ if (*aRelComponents.aPath.pBegin == '/')
{
appendPath(
aBuffer, aBuffer.getLength(), false,