From 487871b0e39bcc69ec0c1f69c30e2697712c6829 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 10 Jun 2020 13:23:43 +0200 Subject: [PATCH 048/139] Fix undefined behavior in xmlXPathTryStreamCompile &NULL[0] is undefined behavior. --- xpath.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xpath.c b/xpath.c index 1510d69..74848cd 100644 --- a/xpath.c +++ b/xpath.c @@ -14104,8 +14104,7 @@ xmlXPathTryStreamCompile(xmlXPathContextPtr ctxt, const xmlChar *str) { } } - stream = xmlPatterncompile(str, dict, XML_PATTERN_XPATH, - &namespaces[0]); + stream = xmlPatterncompile(str, dict, XML_PATTERN_XPATH, namespaces); if (namespaces != NULL) { xmlFree((xmlChar **)namespaces); } -- 1.8.3.1