mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 11:28:01 +02:00
test-autolaunch-win.c: Prevent assertion in dbus_message_unref()
dbus_message_unref() is in principle able to handle a NULL parameter, but causes the program to abort when `fatal_warnings_on_check_failed` is set. Therefore the call with a NULL parameter is avoided from now on. Fixes #422
This commit is contained in:
parent
b081c0a553
commit
7724bf574c
1 changed files with 1 additions and 1 deletions
|
|
@ -62,11 +62,11 @@ call_method (DBusConnection *conn,
|
||||||
|
|
||||||
/* ..._send_with_reply_and_block converts ERROR messages into errors */
|
/* ..._send_with_reply_and_block converts ERROR messages into errors */
|
||||||
_dbus_assert (dbus_message_get_type (reply) != DBUS_MESSAGE_TYPE_ERROR);
|
_dbus_assert (dbus_message_get_type (reply) != DBUS_MESSAGE_TYPE_ERROR);
|
||||||
|
dbus_message_unref (reply);
|
||||||
result = TRUE;
|
result = TRUE;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
_DBUS_ASSERT_ERROR_XOR_BOOL (error, result);
|
_DBUS_ASSERT_ERROR_XOR_BOOL (error, result);
|
||||||
dbus_message_unref (reply);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue