mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Fix duplicate xmlStrEqual calls in htmlParseEndTag
This commit is contained in:
10
HTMLparser.c
10
HTMLparser.c
@ -4207,12 +4207,10 @@ htmlParseEndTag(htmlParserCtxtPtr ctxt)
|
|||||||
* With the exception that the autoclose may have popped stuff out
|
* With the exception that the autoclose may have popped stuff out
|
||||||
* of the stack.
|
* of the stack.
|
||||||
*/
|
*/
|
||||||
if (!xmlStrEqual(name, ctxt->name)) {
|
if ((ctxt->name != NULL) && (!xmlStrEqual(ctxt->name, name))) {
|
||||||
if ((ctxt->name != NULL) && (!xmlStrEqual(ctxt->name, name))) {
|
htmlParseErr(ctxt, XML_ERR_TAG_NAME_MISMATCH,
|
||||||
htmlParseErr(ctxt, XML_ERR_TAG_NAME_MISMATCH,
|
"Opening and ending tag mismatch: %s and %s\n",
|
||||||
"Opening and ending tag mismatch: %s and %s\n",
|
name, ctxt->name);
|
||||||
name, ctxt->name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user