marshalling tests: fix an incorrect use of memcmp
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 20 Feb 2015 16:01:45 +0000 (16:01 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 24 Feb 2015 11:14:31 +0000 (11:14 +0000)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89243
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
dbus/dbus-marshal-basic.c

index 9bb5b76..74fe3f9 100644 (file)
@@ -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,                                  \