[libxml2] Fix xmllint dump of XPath namespace nodes



commit c494a0ba671188e5ab93593c568843087aa6583a
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Tue Mar 12 14:45:04 2019 +0100

    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.

 xmllint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xmllint.c b/xmllint.c
index 970a84ee..67cec205 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]