From: Philip Withnall Date: Tue, 28 Feb 2017 08:55:26 +0000 (+0000) Subject: test: Fix copy-paste error in waiting for a message in the tests X-Git-Tag: dbus-1.11.12~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6cee5f0467fac38ce0bc21218b0cdc613dd5306;p=thirdparty%2Fdbus.git test: Fix copy-paste error in waiting for a message in the tests The parameters to the test_pending_call_store_reply() call should match those to the dbus_pending_call_set_notify() immediately after. Coverity ID: 141876 Signed-off-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99999 Reviewed-by: Simon McVittie --- diff --git a/test/sd-activation.c b/test/sd-activation.c index ff4a657f2..cb5a7c7f0 100644 --- a/test/sd-activation.c +++ b/test/sd-activation.c @@ -880,7 +880,7 @@ test_transient_services (Fixture *f, /* It fails. */ if (dbus_pending_call_get_completed (pc)) - test_pending_call_store_reply (pc, &reply); + test_pending_call_store_reply (pc, &m); else if (!dbus_pending_call_set_notify (pc, test_pending_call_store_reply, &m, NULL)) g_error ("OOM");