mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 20:25:14 +03:00
Fix compiler warning after 153cf15905
Add missing cast for xmlNop to silence a compiler warning.
This commit is contained in:
parent
cf8f0424db
commit
9c8eaabe83
2
parser.c
2
parser.c
@ -2025,7 +2025,7 @@ static void xmlSHRINK (xmlParserCtxtPtr ctxt) {
|
||||
static void xmlGROW (xmlParserCtxtPtr ctxt) {
|
||||
if ((((ctxt->input->end - ctxt->input->cur) > XML_MAX_LOOKUP_LIMIT) ||
|
||||
((ctxt->input->cur - ctxt->input->base) > XML_MAX_LOOKUP_LIMIT)) &&
|
||||
((ctxt->input->buf) && (ctxt->input->buf->readcallback != xmlNop)) &&
|
||||
((ctxt->input->buf) && (ctxt->input->buf->readcallback != (xmlInputReadCallback) xmlNop)) &&
|
||||
((ctxt->options & XML_PARSE_HUGE) == 0)) {
|
||||
xmlFatalErr(ctxt, XML_ERR_INTERNAL_ERROR, "Huge input lookup");
|
||||
ctxt->instate = XML_PARSER_EOF;
|
||||
|
Loading…
Reference in New Issue
Block a user