summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@collabora.com>2020-08-25 16:43:03 +0200
committerFrédéric Danis <frederic.danis@collabora.com>2020-08-25 16:43:03 +0200
commitd607a461ce5987b1f94bc20124df8dcc0999501e (patch)
tree913fd0cfc2caca8cee33ed84ca6d100ce6da80f8
parent0720eb2aebe7f29bcef47886cad12e71bd69a5a9 (diff)
bluez5: backend-hsphfpd: Fix crash when switching profile to HFP
-rw-r--r--spa/plugins/bluez5/backend-hsphfpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/spa/plugins/bluez5/backend-hsphfpd.c b/spa/plugins/bluez5/backend-hsphfpd.c
index 16be482a..906266b3 100644
--- a/spa/plugins/bluez5/backend-hsphfpd.c
+++ b/spa/plugins/bluez5/backend-hsphfpd.c
@@ -811,6 +811,8 @@ static void hsphfpd_audio_acquire_reply(DBusPendingCall *pending, void *user_dat
const char *agent_path;
DBusError error;
+ dbus_error_init(&error);
+
backend->acquire_in_progress = false;
r = dbus_pending_call_steal_reply(pending);