diff options
Diffstat (limited to 'src/hci.c')
-rw-r--r-- | src/hci.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -680,6 +680,8 @@ int hci_for_each_dev(int flag, int (*func)(int dd, int dev_id, long arg), long a goto done; } + memset(dl, 0, HCI_MAX_DEV * sizeof(*dr) + sizeof(*dl)); + dl->dev_num = HCI_MAX_DEV; dr = dl->dev_req; |