[libxml2] Fix duplicate xmlStrEqual calls in htmlParseEndTag
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix duplicate xmlStrEqual calls in htmlParseEndTag
- Date: Thu, 4 Mar 2021 18:43:16 +0000 (UTC)
commit 683de7efe4a4178d62fab85d8c5f4c3bed36b984
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Thu Mar 4 19:06:04 2021 +0100
Fix duplicate xmlStrEqual calls in htmlParseEndTag
HTMLparser.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index e63e9b78..adefb3b5 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -4207,12 +4207,10 @@ htmlParseEndTag(htmlParserCtxtPtr ctxt)
* With the exception that the autoclose may have popped stuff out
* of the stack.
*/
- if (!xmlStrEqual(name, ctxt->name)) {
- if ((ctxt->name != NULL) && (!xmlStrEqual(ctxt->name, name))) {
- htmlParseErr(ctxt, XML_ERR_TAG_NAME_MISMATCH,
- "Opening and ending tag mismatch: %s and %s\n",
- name, ctxt->name);
- }
+ if ((ctxt->name != NULL) && (!xmlStrEqual(ctxt->name, name))) {
+ htmlParseErr(ctxt, XML_ERR_TAG_NAME_MISMATCH,
+ "Opening and ending tag mismatch: %s and %s\n",
+ name, ctxt->name);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]