summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hci.c b/src/hci.c
index 7135501b..caed69bf 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -764,6 +764,8 @@ int hci_devinfo(int dev_id, struct hci_dev_info *di)
if (dd < 0)
return dd;
+ memset(di, 0, sizeof(struct hci_dev_info));
+
di->dev_id = dev_id;
ret = ioctl(dd, HCIGETDEVINFO, (void *) di);