summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-20 16:01:45 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-24 11:14:31 +0000
commitf6a2b907ec528968f8ef3936be422b346d745d09 (patch)
treeae27c61afb8fd04a453e02651606514f8f321aed
parente554e1b4ba03db225d0195f8c5ed994c26efc36e (diff)
downloaddbus-f6a2b907ec528968f8ef3936be422b346d745d09.tar.gz
marshalling tests: fix an incorrect use of memcmp
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89243 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
-rw-r--r--dbus/dbus-marshal-basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-marshal-basic.c b/dbus/dbus-marshal-basic.c
index 9bb5b761..74fe3f91 100644
--- a/dbus/dbus-marshal-basic.c
+++ b/dbus/dbus-marshal-basic.c
@@ -1580,7 +1580,7 @@ swap_test_array (void *array,
#define DEMARSHAL_FIXED_ARRAY_AND_CHECK(typename, byte_order, literal) \
do { \
DEMARSHAL_FIXED_ARRAY (typename, byte_order); \
- if (memcmp (literal, v_ARRAY_##typename, sizeof (literal) != 0)) \
+ if (memcmp (literal, v_ARRAY_##typename, sizeof (literal)) != 0) \
{ \
_dbus_verbose ("MARSHALED DATA\n"); \
_dbus_verbose_bytes_of_string (&str, dump_pos, \