mirror of
https://git.yoctoproject.org/libmatchboxwm2
synced 2025-11-03 20:55:44 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user