forked from enlightenment/efl
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:
parent
8b6e72bfad
commit
cfe4f19f54
|
@ -351,9 +351,7 @@ eina_simple_xml_parse(const char *buf, unsigned buflen, Eina_Bool strip, Eina_Si
|
||||||
type = EINA_SIMPLE_XML_CDATA;
|
type = EINA_SIMPLE_XML_CDATA;
|
||||||
toff = sizeof("![CDATA[") - 1;
|
toff = sizeof("![CDATA[") - 1;
|
||||||
}
|
}
|
||||||
else if ((itr + sizeof("<!>") - 1 < itr_end) &&
|
else if (itr + sizeof("<!>") - 1 < itr_end)
|
||||||
(!memcmp(itr + 2, "",
|
|
||||||
sizeof("") - 1)))
|
|
||||||
{
|
{
|
||||||
type = EINA_SIMPLE_XML_DOCTYPE_CHILD;
|
type = EINA_SIMPLE_XML_DOCTYPE_CHILD;
|
||||||
toff = sizeof("!") - 1;
|
toff = sizeof("!") - 1;
|
||||||
|
|
Loading…
Reference in New Issue