tests: y4mreader: fix string state checkup

str cannot be null in that moment, but it may be the end of string.
parent 3ee955a2
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment