From d911dd48ce55a71522b63b12cafbb2552d210e78 Mon Sep 17 00:00:00 2001 From: Peter Meerwald-Stadler Date: Wed, 6 Sep 2017 09:56:10 +0200 Subject: [PATCH] bluetooth: bluez5: Fix Coverity warning Use pa_assert_se() to check return value (pro forma) like everywhere else Coverity ID: #154313 Signed-off-by: Peter Meerwald-Stadler --- src/modules/bluetooth/bluez5-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluetooth/bluez5-util.c b/src/modules/bluetooth/bluez5-util.c index 304a26e84..cc8d87f9c 100644 --- a/src/modules/bluetooth/bluez5-util.c +++ b/src/modules/bluetooth/bluez5-util.c @@ -1024,7 +1024,7 @@ void pa_bluetooth_discovery_set_ofono_running(pa_bluetooth_discovery *y, bool is pa_assert_se(m = dbus_message_new_method_call(BLUEZ_SERVICE, d->path, "org.bluez.Device1", "Disconnect")); dbus_message_set_no_reply(m, true); - dbus_connection_send(pa_dbus_connection_get(y->connection), m, NULL); + pa_assert_se(dbus_connection_send(pa_dbus_connection_get(y->connection), m, NULL)); dbus_message_unref(m); } }