From 4d5f3620af6e8649083a2a3c1172d75618137432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Tue, 2 May 2023 23:44:26 +0200 Subject: [PATCH] spa: bluez: initalize DBusError object The DBusError passed to `dbus_set_error_from_message()` must be initialized, otherwise libdbus aborts: dbus[129473]: arguments to dbus_set_error_from_message() were incorrect, assertion "(error) == NULL || !dbus_error_is_set ((error))" failed in file dbus-message.c line 4043. This is normally a bug in some application using the D-Bus library. --- spa/plugins/bluez5/bluez5-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index 1e5f348b1..8bfd46b31 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -3212,7 +3212,7 @@ static void transport_set_property_volume_reply(DBusPendingCall *pending, void * { struct spa_bt_transport *transport = user_data; struct spa_bt_monitor *monitor = transport->monitor; - DBusError err; + DBusError err = DBUS_ERROR_INIT; DBusMessage *r; r = dbus_pending_call_steal_reply(pending);