mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
check: Use g_strcmp0 instead of strcmp
Avoids segfaults when using NULL arguments.
This commit is contained in:
parent
e406f7c572
commit
8c2481dd57
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ G_STMT_START { \
|
|||
G_STMT_START { \
|
||||
const gchar * first = a; \
|
||||
const gchar * second = b; \
|
||||
fail_unless(strcmp (first, second) == 0, \
|
||||
fail_unless(g_strcmp0 (first, second) == 0, \
|
||||
"'" #a "' (%s) is not equal to '" #b"' (%s)", first, second); \
|
||||
} G_STMT_END;
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue