From: Simon McVittie Date: Fri, 20 Feb 2015 16:01:45 +0000 (+0000) Subject: marshalling tests: fix an incorrect use of memcmp X-Git-Tag: dbus-1.10.6~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6a2b907ec528968f8ef3936be422b346d745d09;p=platform%2Fupstream%2Fdbus.git marshalling tests: fix an incorrect use of memcmp Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89243 Reviewed-by: Ralf Habacker --- diff --git a/dbus/dbus-marshal-basic.c b/dbus/dbus-marshal-basic.c index 9bb5b76..74fe3f9 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, \