summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2010-08-30 10:47:31 (GMT)
committerEdward Hervey <bilboed@bilboed.com>2010-08-30 10:48:40 (GMT)
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 3e84b84..b746371 100644
--- a/libs/gst/check/gstcheck.h
+++ b/libs/gst/check/gstcheck.h
@@ -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;
/**