aboutsummaryrefslogtreecommitdiffstats
path: root/xpath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-10-06 13:08:27 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-10-06 13:08:27 +0000
commit6ab38386cc16642626d944b357580657e751d8ba (patch)
tree56873d6ae3b685d8230de49230e74c9e877847f8 /xpath.c
parent556c668f04a45a3aafc52b8445c821569807dd19 (diff)
downloadandroid_external_libxml2-6ab38386cc16642626d944b357580657e751d8ba.tar.gz
android_external_libxml2-6ab38386cc16642626d944b357580657e751d8ba.tar.bz2
android_external_libxml2-6ab38386cc16642626d944b357580657e751d8ba.zip
fixing #61673 part I, do not loose doc information when copying result
* xpath.c: fixing #61673 part I, do not loose doc information when copying result value trees. Daniel
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xpath.c b/xpath.c
index 89ee25e4..95a516e2 100644
--- a/xpath.c
+++ b/xpath.c
@@ -2755,7 +2755,8 @@ xmlXPathObjectCopy(xmlXPathObjectPtr val) {
if ((val->nodesetval != NULL) &&
(val->nodesetval->nodeTab != NULL)) {
ret->boolval = 1;
- ret->user = xmlCopyNode(val->nodesetval->nodeTab[0], 1);
+ ret->user = xmlDocCopyNode(val->nodesetval->nodeTab[0],
+ val->nodesetval->nodeTab[0]->doc, 1);
ret->nodesetval = xmlXPathNodeSetCreate(
(xmlNodePtr) ret->user);
} else