diff options
-rw-r--r-- | include/libxml/xpath.h | 2 | ||||
-rw-r--r-- | include/libxml/xpathInternals.h | 2 | ||||
-rw-r--r-- | xpointer.c | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/include/libxml/xpath.h b/include/libxml/xpath.h index b57985a2..6dae0780 100644 --- a/include/libxml/xpath.h +++ b/include/libxml/xpath.h @@ -400,7 +400,7 @@ struct _xmlXPathParserContext { int xptr; /* it this an XPointer expression */ xmlNodePtr ancestor; /* used for walking preceding axis */ - int valueFrame; /* unused */ + int valueFrame; /* always zero for compatibility */ }; /************************************************************************ diff --git a/include/libxml/xpathInternals.h b/include/libxml/xpathInternals.h index cb0991d7..870055f9 100644 --- a/include/libxml/xpathInternals.h +++ b/include/libxml/xpathInternals.h @@ -297,7 +297,7 @@ XMLPUBFUN void * if (ctxt == NULL) return; \ if (nargs != (x)) \ XP_ERROR(XPATH_INVALID_ARITY); \ - if (ctxt->valueNr < ctxt->valueFrame + (x)) \ + if (ctxt->valueNr < (x)) \ XP_ERROR(XPATH_STACK_ERROR); /** @@ -1248,7 +1248,6 @@ xmlXPtrEvalXPointer(xmlXPathParserContextPtr ctxt) { ctxt->valueNr = 0; ctxt->valueMax = 10; ctxt->value = NULL; - ctxt->valueFrame = 0; } SKIP_BLANKS; if (CUR == '/') { |