projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee955a
)
tests: y4mreader: fix string state checkup
author
Víctor Manuel Jáquez Leal
<vjaquez@igalia.com>
Wed, 10 Jan 2018 16:06:53 +0000
(17:06 +0100)
committer
Víctor Manuel Jáquez Leal
<vjaquez@igalia.com>
Wed, 10 Jan 2018 16:06:53 +0000
(17:06 +0100)
str cannot be null in that moment, but it may be the end of string.
tests/y4mreader.c
patch
|
blob
|
history
diff --git
a/tests/y4mreader.c
b/tests/y4mreader.c
index
caded8a
..
5fa7dcb
100644
(file)
--- 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;