summaryrefslogtreecommitdiffstats
path: root/src/hci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci.c')
-rw-r--r--src/hci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hci.c b/src/hci.c
index d0c2394c..35aa9059 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -856,6 +856,7 @@ int hci_open_dev(int dev_id)
return dd;
/* Bind socket to the HCI device */
+ memset(&a, 0, sizeof(a));
a.hci_family = AF_BLUETOOTH;
a.hci_dev = dev_id;
if (bind(dd, (struct sockaddr *) &a, sizeof(a)) < 0)