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.
This commit is contained in:
Barnabás Pőcze 2023-05-02 23:44:26 +02:00 committed by Wim Taymans
parent 10352dbaa5
commit 4d5f3620af

View file

@ -3212,7 +3212,7 @@ static void transport_set_property_volume_reply(DBusPendingCall *pending, void *
{ {
struct spa_bt_transport *transport = user_data; struct spa_bt_transport *transport = user_data;
struct spa_bt_monitor *monitor = transport->monitor; struct spa_bt_monitor *monitor = transport->monitor;
DBusError err; DBusError err = DBUS_ERROR_INIT;
DBusMessage *r; DBusMessage *r;
r = dbus_pending_call_steal_reply(pending); r = dbus_pending_call_steal_reply(pending);