diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-21 11:26:43 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-21 11:26:43 +0000 | 
| commit | 9b3d6f5cd180f037789e0b2af4656f55d6df2c0c (patch) | |
| tree | d5daada5a46d66957772e76312549464271bf8c8 /src | |
| parent | 99b4c49f0afb4bb3bc92bded8ed8ab59e67a440a (diff) | |
Initialize memory to zero in hci_for_each_dev
Diffstat (limited to 'src')
| -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; | 
