mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
More bugfixes due to DocBook:
- xpath.c: bug fix when context size is 0 - parser.c: I like Norm's Dtd because they still manage to break the parser occasionally Daniel
This commit is contained in:
2
xpath.c
2
xpath.c
@ -3374,7 +3374,7 @@ xmlXPathRoot(xmlXPathParserContextPtr ctxt) {
|
||||
void
|
||||
xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs) {
|
||||
CHECK_ARITY(0);
|
||||
if (ctxt->context->contextSize > 0) {
|
||||
if (ctxt->context->contextSize >= 0) {
|
||||
valuePush(ctxt, xmlXPathNewFloat((double) ctxt->context->contextSize));
|
||||
#ifdef DEBUG_EXPR
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
|
Reference in New Issue
Block a user