mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
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
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Sat Oct 6 15:07:14 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* xpath.c: fixing #61673 part I, do not loose doc information
|
||||||
|
when copying result value trees.
|
||||||
|
|
||||||
Sat Oct 6 11:58:58 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
Sat Oct 6 11:58:58 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* xpath.c: trying to harden the XPath interpreter
|
* xpath.c: trying to harden the XPath interpreter
|
||||||
|
3
xpath.c
3
xpath.c
@ -2755,7 +2755,8 @@ xmlXPathObjectCopy(xmlXPathObjectPtr val) {
|
|||||||
if ((val->nodesetval != NULL) &&
|
if ((val->nodesetval != NULL) &&
|
||||||
(val->nodesetval->nodeTab != NULL)) {
|
(val->nodesetval->nodeTab != NULL)) {
|
||||||
ret->boolval = 1;
|
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(
|
ret->nodesetval = xmlXPathNodeSetCreate(
|
||||||
(xmlNodePtr) ret->user);
|
(xmlNodePtr) ret->user);
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user