eina simple xml parser - remove pointless memcmp of 0 bytes

no point - all we are doing is having a final fallback of any tag that
starts with ! that isnt a special one like !DOCTYPE, !-- comment and
![CDATA stuff... analysers dont like these pointless calls.

found by PVS studio
This commit is contained in:
Carsten Haitzler 2017-07-29 11:03:01 +09:00
parent 8b6e72bfad
commit cfe4f19f54
1 changed files with 1 additions and 3 deletions

View File

@ -351,9 +351,7 @@ eina_simple_xml_parse(const char *buf, unsigned buflen, Eina_Bool strip, Eina_Si
type = EINA_SIMPLE_XML_CDATA;
toff = sizeof("![CDATA[") - 1;
}
else if ((itr + sizeof("<!>") - 1 < itr_end) &&
(!memcmp(itr + 2, "",
sizeof("") - 1)))
else if (itr + sizeof("<!>") - 1 < itr_end)
{
type = EINA_SIMPLE_XML_DOCTYPE_CHILD;
toff = sizeof("!") - 1;