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 6161376e..1155b546 100644
--- a/libxslt/pattern.c
+++ b/libxslt/pattern.c
@@ -1867,6 +1867,8 @@ xsltCompilePatternInternal(const xmlChar *pattern, xmlDocPtr doc,
while ((pattern[end] != 0) && (pattern[end] != '"'))
end++;
}
+ if (pattern[end] == 0)
+ break;
end++;
}
if (current == end) {