mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-20 18:50:08 +03:00
Fix xmllint dump of XPath namespace nodes
Starting with commit da35eeae, xmllint uses the xmlNodeDump API to dump XPath nodes. Make sure not to access node->doc which doesn't work with namespace nodes.
This commit is contained in:
parent
30a6533e01
commit
c494a0ba67
@ -2083,7 +2083,7 @@ static void doXPathDump(xmlXPathObjectPtr cur) {
|
||||
}
|
||||
for (i = 0;i < cur->nodesetval->nodeNr;i++) {
|
||||
node = cur->nodesetval->nodeTab[i];
|
||||
xmlNodeDumpOutput(buf, node->doc, node, 0, 0, NULL);
|
||||
xmlNodeDumpOutput(buf, NULL, node, 0, 0, NULL);
|
||||
xmlOutputBufferWrite(buf, 1, "\n");
|
||||
}
|
||||
xmlOutputBufferClose(buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user