summaryrefslogtreecommitdiff
path: root/external/libxml2/ubsan.patch.0
blob: b5225971967348642821aba333ded3198f8d0eba (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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);
 	}