summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configpaths.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/configpaths.cxx b/unotools/source/config/configpaths.cxx
index 1b3518c39f7a..d3813f31fcf5 100644
--- a/unotools/source/config/configpaths.cxx
+++ b/unotools/source/config/configpaths.cxx
@@ -125,8 +125,8 @@ bool splitLastFromConfigurationPath(std::u16string_view _sInPath,
nPos = _sInPath.rfind('/',nEnd);
nStart = nPos + 1;
}
- OSL_ASSERT( nPos != std::u16string_view::npos &&
- nPos < nStart &&
+ OSL_ASSERT( (nPos == std::u16string_view::npos ||
+ nPos < nStart) &&
nStart < nEnd &&
nEnd <= _sInPath.size() );