From c56f444ab0a63c64ba3a0c522190a16e58bcc736 Mon Sep 17 00:00:00 2001 From: Karl Waclawek Date: Wed, 22 Jan 2003 14:26:07 +0000 Subject: [PATCH] Prevent storeAtts() from being called twice for an empty element when the endElementHandler is set, but not the startElementHandler. --- expat/lib/xmlparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 43e50bf9..fa02fd93 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -2123,7 +2123,7 @@ doContent(XML_Parser parser, break; } case XML_TOK_EMPTY_ELEMENT_WITH_ATTS: - if (!startElementHandler) { + if (!startElementHandler && !endElementHandler) { enum XML_Error result = storeAtts(parser, enc, s, 0, 0); if (result) return result; -- 2.40.0