theme: Don't _Stop the parser for "</theme>" tags

In xml_element_end_cb we were calling XML_StopParser when finding a
</theme> tag, but the semantics of that are the XML_Parse will return an
abort error which then results in us reporting a parse error. Instead of
explicitly trying to stop the parser we simply ignore the </theme> tags
and assume we will get an error from expat if the tag is unbalanced.
This commit is contained in:
Robert Bragg
2010-11-25 12:17:51 +00:00
parent 43c8ac7890
commit 8c59f1a511

View File

@@ -1311,11 +1311,7 @@ xml_element_end_cb (void *data, const char *tag)
MBWM_DBG ("tag </%s>\n", tag);
if (!strcmp (tag, "theme"))
{
XML_StopParser (exd->par, 0);
}
else if (!strcmp (tag, "client"))
if (!strcmp (tag, "client"))
{
if (ctx == XML_CTX_CLIENT)
{