1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

Don't change context node in xmlXPathRoot

This commit is contained in:
Nick Wellnhofer 2017-05-25 01:21:57 +02:00
parent e22a83b1d0
commit 938835e763

View File

@ -8477,9 +8477,8 @@ void
xmlXPathRoot(xmlXPathParserContextPtr ctxt) {
if ((ctxt == NULL) || (ctxt->context == NULL))
return;
ctxt->context->node = (xmlNodePtr) ctxt->context->doc;
valuePush(ctxt, xmlXPathCacheNewNodeSet(ctxt->context,
ctxt->context->node));
(xmlNodePtr) ctxt->context->doc));
}
/************************************************************************