typefind: remove unneeded test

We've already bailed out if we have less than 5 bytes.

Coverity 1226441
This commit is contained in:
Vincent Penquerc'h 2014-10-03 12:08:05 +01:00
parent 969c9bced6
commit 5d1376cefa

View file

@ -505,8 +505,6 @@ xml_check_first_element_from_data (const guint8 * data, guint length,
/* skip XMLDec in any case if we've got one */
if (got_xmldec) {
if (pos + 5 >= length)
return FALSE;
pos += 5;
data += 5;
}