mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
typefind: remove unneeded test
We've already bailed out if we have less than 5 bytes. Coverity 1226441
This commit is contained in:
parent
969c9bced6
commit
5d1376cefa
1 changed files with 0 additions and 2 deletions
|
@ -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 */
|
/* skip XMLDec in any case if we've got one */
|
||||||
if (got_xmldec) {
|
if (got_xmldec) {
|
||||||
if (pos + 5 >= length)
|
|
||||||
return FALSE;
|
|
||||||
pos += 5;
|
pos += 5;
|
||||||
data += 5;
|
data += 5;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue