diff options
-rw-r--r-- | unotools/source/config/configpaths.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unotools/source/config/configpaths.cxx b/unotools/source/config/configpaths.cxx index 70043a60fbd9..4e5002238d93 100644 --- a/unotools/source/config/configpaths.cxx +++ b/unotools/source/config/configpaths.cxx @@ -97,7 +97,8 @@ bool splitLastFromConfigurationPath(std::u16string_view _sInPath, nEnd = nPos; nPos = _sInPath.find(chQuote,nEnd); nStart = nPos + 1; - --nPos; // nPos = rInPath.lastIndexOf('[',nPos); + if (nPos != std::u16string_view::npos) + --nPos; // nPos = rInPath.lastIndexOf('[',nPos); } else // allow [xxx] { |