79e15d33c8
...that had been added with fcb2d8a87a
"external/libxml2: Avoid UBSan nullptr-with-offset"
Change-Id: I7ee234c8c6a868ed825a8ed3fa0dcdc69decb7ba
Reviewed-on: https://gerrit.libreoffice.org/81299
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
11 lines
268 B
Text
11 lines
268 B
Text
--- xpath.c
|
|
+++ xpath.c
|
|
@@ -14529,7 +14529,7 @@
|
|
}
|
|
|
|
stream = xmlPatterncompile(str, dict, XML_PATTERN_XPATH,
|
|
- &namespaces[0]);
|
|
+ namespaces); // i.e., &namespaces[0] if namespaces != NULL
|
|
if (namespaces != NULL) {
|
|
xmlFree((xmlChar **)namespaces);
|
|
}
|