summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2010-08-30 12:47:31 +0200
committerEdward Hervey <bilboed@bilboed.com>2010-08-30 12:48:40 +0200
commit8c2481dd57b8245f9596950f238c84610da7c6d1 (patch)
treedcaab623814e1a9af9476d35e99ff9ac77a3a1f1
parente406f7c57247660fe288a6577b3034bb3f692edd (diff)
check: Use g_strcmp0 instead of strcmp
Avoids segfaults when using NULL arguments.
-rw-r--r--libs/gst/check/gstcheck.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gst/check/gstcheck.h b/libs/gst/check/gstcheck.h
index 3e84b84916..b746371722 100644
--- a/libs/gst/check/gstcheck.h
+++ b/libs/gst/check/gstcheck.h
@@ -187,7 +187,7 @@ G_STMT_START { \
187G_STMT_START { \ 187G_STMT_START { \
188 const gchar * first = a; \ 188 const gchar * first = a; \
189 const gchar * second = b; \ 189 const gchar * second = b; \
190 fail_unless(strcmp (first, second) == 0, \ 190 fail_unless(g_strcmp0 (first, second) == 0, \
191 "'" #a "' (%s) is not equal to '" #b"' (%s)", first, second); \ 191 "'" #a "' (%s) is not equal to '" #b"' (%s)", first, second); \
192} G_STMT_END; 192} G_STMT_END;
193/** 193/**