summaryrefslogtreecommitdiffstats
path: root/src/hci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci.c')
-rw-r--r--src/hci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hci.c b/src/hci.c
index 35aa9059..d5d7124f 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -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;