diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-05-25 01:21:57 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2018-04-16 18:28:42 +0200 |
commit | 938835e763277684274ac31afc08fc40fa419aae (patch) | |
tree | b63d44be45a682552b3020a149b64a1f2e7a589d | |
parent | e22a83b1d095dac25ce05e1a2d9f263f41d11c68 (diff) | |
download | libxml2-938835e763277684274ac31afc08fc40fa419aae.tar.gz |
Don't change context node in xmlXPathRoot
-rw-r--r-- | xpath.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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)); } /************************************************************************ |