forked from amazingfate/loongoffice
...that had been added with fcb2d8a87ad696f7f2fe069f0ed68a88803e1b54 "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>
12 lines
268 B
Plaintext
12 lines
268 B
Plaintext
--- 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);
|
|
}
|