mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Revert "xpath: Make contextSize and proximityPosition default to 1"
This reverts commit afbc0a0405236de4ab8cbac94745e9885db0a198.
This commit is contained in:
parent
9c16a153d8
commit
69b91da3a8
4
xpath.c
4
xpath.c
@ -4940,8 +4940,8 @@ xmlXPathNewContext(xmlDocPtr doc) {
|
|||||||
ret->nsHash = NULL;
|
ret->nsHash = NULL;
|
||||||
ret->user = NULL;
|
ret->user = NULL;
|
||||||
|
|
||||||
ret->contextSize = 1;
|
ret->contextSize = -1;
|
||||||
ret->proximityPosition = 1;
|
ret->proximityPosition = -1;
|
||||||
|
|
||||||
#ifdef XP_DEFAULT_CACHE_ON
|
#ifdef XP_DEFAULT_CACHE_ON
|
||||||
if (xmlXPathContextSetCache(ret, 1, -1, 0) == -1) {
|
if (xmlXPathContextSetCache(ret, 1, -1, 0) == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user