[pulseaudio-discuss] [PATCH 3/8] bluetooth: bluez5: Fix Coverity warning
Peter Meerwald-Stadler
pmeerw at pmeerw.net
Wed Sep 6 12:23:57 UTC 2017
Use pa_assert_se() to check return value (pro forma) like everywhere else
Coverity ID: #154313
Signed-off-by: Peter Meerwald-Stadler <pmeerw at pmeerw.net>
---
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 304a26e..cc8d87f 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);
}
}
--
2.7.4
More information about the pulseaudio-discuss
mailing list