diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-10-02 11:13:08 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-10-02 11:19:05 +0200 |
commit | 1d7afe82114b8bf0688cbf1cb852babb36cac7d1 (patch) | |
tree | edb9cd1ffa35b6974ace613ef4c2575483f5a593 /tools | |
parent | 8232558057813074ce6bdb3317a9fb4888f7b8e3 (diff) | |
download | bluez-1d7afe82114b8bf0688cbf1cb852babb36cac7d1.tar.gz |
Fix another variable initialization
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hcitool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c index 3f087e88..6d767665 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -509,7 +509,6 @@ static void cmd_scan(int dev_id, int argc, char **argv) uint8_t lap[3] = { 0x33, 0x8b, 0x9e }; int num_rsp, length, flags; uint8_t cls[3], features[8]; - uint16_t handle; char addr[18], name[249], oui[9], *comp, *tmp; struct hci_version version; struct hci_dev_info di; @@ -609,6 +608,8 @@ static void cmd_scan(int dev_id, int argc, char **argv) printf("\n"); for (i = 0; i < num_rsp; i++) { + uint16_t handle = 0; + if (!refresh) { memset(name, 0, sizeof(name)); tmp = get_device_name(&di.bdaddr, &(info+i)->bdaddr); |