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) ...@@ -36,7 +36,7 @@ parse_int (const gchar * str, guint * out_value_ptr)
if (!str) if (!str)
return FALSE; return FALSE;
str += 1; str += 1;
if (!str) if (*str == '\0')
return FALSE; return FALSE;
saved_errno = errno; 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