mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
tests: y4mreader: fix string state checkup
str cannot be null in that moment, but it may be the end of string.
This commit is contained in:
parent
3ee955a2f2
commit
66794c9bc9
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ parse_int (const gchar * str, guint * out_value_ptr)
|
|||
if (!str)
|
||||
return FALSE;
|
||||
str += 1;
|
||||
if (!str)
|
||||
if (*str == '\0')
|
||||
return FALSE;
|
||||
|
||||
saved_errno = errno;
|
||||
|
|
Loading…
Reference in a new issue