From 938835e763277684274ac31afc08fc40fa419aae Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Thu, 25 May 2017 01:21:57 +0200 Subject: Don't change context node in xmlXPathRoot --- xpath.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xpath.c b/xpath.c index 601763ee..1e98ddc2 100644 --- a/xpath.c +++ b/xpath.c @@ -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)); } /************************************************************************ -- cgit v1.2.1