mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Fix a small problem on previous HTML parser patch
This commit is contained in:
@ -4080,14 +4080,15 @@ htmlParseElement(htmlParserCtxtPtr ctxt) {
|
|||||||
int depth;
|
int depth;
|
||||||
const xmlChar *oldptr;
|
const xmlChar *oldptr;
|
||||||
|
|
||||||
if (ctxt->instate == XML_PARSER_EOF)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if ((ctxt == NULL) || (ctxt->input == NULL)) {
|
if ((ctxt == NULL) || (ctxt->input == NULL)) {
|
||||||
htmlParseErr(ctxt, XML_ERR_INTERNAL_ERROR,
|
htmlParseErr(ctxt, XML_ERR_INTERNAL_ERROR,
|
||||||
"htmlParseElement: context error\n", NULL, NULL);
|
"htmlParseElement: context error\n", NULL, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ctxt->instate == XML_PARSER_EOF)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Capture start position */
|
/* Capture start position */
|
||||||
if (ctxt->record_info) {
|
if (ctxt->record_info) {
|
||||||
node_info.begin_pos = ctxt->input->consumed +
|
node_info.begin_pos = ctxt->input->consumed +
|
||||||
|
Reference in New Issue
Block a user