1
0
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:
Nick Wellnhofer
2021-03-04 19:06:04 +01:00
parent 8095365b77
commit 683de7efe4

View File

@ -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);
}
} }
/* /*