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:
Víctor Manuel Jáquez Leal 2018-01-10 17:06:53 +01:00
parent 3ee955a2f2
commit 66794c9bc9

View file

@ -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;