summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libxslt/pattern.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libxslt/pattern.c b/libxslt/pattern.c
index 8ce74e3..e0aebff 100644
--- a/libxslt/pattern.c
+++ b/libxslt/pattern.c
@@ -1864,6 +1864,8 @@ xsltCompilePatternInternal(const xmlChar *pattern, xmlDocPtr doc,
while ((pattern[end] != 0) && (pattern[end] != '"'))
end++;
}
+ if (pattern[end] == 0)
+ break;
end++;
}
if (current == end) {