Prevent storeAtts() from being called twice for an empty element when

the endElementHandler is set, but not the startElementHandler.
This commit is contained in:
Karl Waclawek 2003-01-22 14:26:07 +00:00
parent d6df5f356b
commit c56f444ab0

View File

@ -2123,7 +2123,7 @@ doContent(XML_Parser parser,
break; break;
} }
case XML_TOK_EMPTY_ELEMENT_WITH_ATTS: case XML_TOK_EMPTY_ELEMENT_WITH_ATTS:
if (!startElementHandler) { if (!startElementHandler && !endElementHandler) {
enum XML_Error result = storeAtts(parser, enc, s, 0, 0); enum XML_Error result = storeAtts(parser, enc, s, 0, 0);
if (result) if (result)
return result; return result;