summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 15:11:13 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 15:11:13 +0000
commitc1761757dfeb3bf1802c5486d652d8f3852f939e (patch)
treefeffbcb89a3f439948dcb168457b64f9a2e2640a
parent1b9bcb5ed4fe1301b32db6db1be9200c7c66348a (diff)
Get rid of some valgrind warnings caused by hci_get_route(NULL) calls
-rw-r--r--audio/device.c2
-rw-r--r--audio/manager.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/audio/device.c b/audio/device.c
index af7cca80..1d39cb16 100644
--- a/audio/device.c
+++ b/audio/device.c
@@ -140,7 +140,7 @@ struct device *device_register(DBusConnection *conn,
return NULL;
bacpy(&src, BDADDR_ANY);
- dev_id = hci_get_route(NULL);
+ dev_id = hci_get_route(&src);
if ((dev_id < 0) || (hci_devba(dev_id, &src) < 0))
return NULL;
diff --git a/audio/manager.c b/audio/manager.c
index 58f19ed0..87b3b4f3 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1174,7 +1174,7 @@ static void register_devices_stored(const char *adapter)
textfile_foreach(filename, parse_stored_devices, &src);
bacpy(&default_src, BDADDR_ANY);
- dev_id = hci_get_route(NULL);
+ dev_id = hci_get_route(&default_src);
if (dev_id < 0)
hci_devba(dev_id, &default_src);