diff options
-rw-r--r-- | src/hci.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -762,6 +762,8 @@ int hci_devba(int dev_id, bdaddr_t *bdaddr) { struct hci_dev_info di; + memset(&di, 0, sizeof(di)); + if (hci_devinfo(dev_id, &di)) return -1; |
index : bluez.git | ||
Lennart's Copy of bluez |
summaryrefslogtreecommitdiffstats |
-rw-r--r-- | src/hci.c | 2 |
@@ -762,6 +762,8 @@ int hci_devba(int dev_id, bdaddr_t *bdaddr) { struct hci_dev_info di; + memset(&di, 0, sizeof(di)); + if (hci_devinfo(dev_id, &di)) return -1; |