summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/source/fsys/urlobj.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index aeb85c1c9f1d..611a14145dde 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2274,7 +2274,8 @@ INetURLObject::PrefixInfo const * INetURLObject::getPrefix(sal_Unicode const *&
sal_Int32 i = 0;
for (; pFirst < pLast; ++i)
{
- if (pFirst->m_pPrefix && pFirst->m_pPrefix[i] == '\0')
+ assert(pFirst->m_pPrefix && "we start search after the dummy entry");
+ if (pFirst->m_pPrefix[i] == '\0')
{
pMatch = pFirst++;
pMatched = p;