diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-02-20 16:01:45 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-02-24 11:14:31 +0000 |
commit | f6a2b907ec528968f8ef3936be422b346d745d09 (patch) | |
tree | ae27c61afb8fd04a453e02651606514f8f321aed /dbus/dbus-marshal-basic.c | |
parent | e554e1b4ba03db225d0195f8c5ed994c26efc36e (diff) | |
download | dbus-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>
Diffstat (limited to 'dbus/dbus-marshal-basic.c')
-rw-r--r-- | dbus/dbus-marshal-basic.c | 2 |
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, \ |