test: Fix copy-paste error in waiting for a message in the tests
authorPhilip Withnall <withnall@endlessm.com>
Tue, 28 Feb 2017 08:55:26 +0000 (08:55 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 20 Mar 2017 14:53:37 +0000 (14:53 +0000)
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 <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99999
Reviewed-by: Simon McVittie <smcv@collabora.com>
test/sd-activation.c

index ff4a657..cb5a7c7 100644 (file)
@@ -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");