summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-01-10 17:06:53 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-01-10 17:06:53 +0100
commit66794c9bc9b2a834764d0e139e594badb305875b (patch)
tree1a1dc4dff440581051e248a143893e076a929384 /tests
parent3ee955a2f282121a73be6b4b7c959e5d7c1d507e (diff)
tests: y4mreader: fix string state checkup
str cannot be null in that moment, but it may be the end of string.
Diffstat (limited to 'tests')
-rw-r--r--tests/y4mreader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/y4mreader.c b/tests/y4mreader.c
index caded8ad..5fa7dcb1 100644
--- a/tests/y4mreader.c
+++ b/tests/y4mreader.c
@@ -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;