summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-hci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index 3d53b901..ca25dd70 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -1013,6 +1013,7 @@ int found_device_req_name(struct adapter *adapter)
/* flag to indicate the current remote name requested */
dev->name_status = NAME_REQUESTED;
+ memset(&rp, 0, sizeof(rp));
memset(&cp, 0, sizeof(cp));
bacpy(&cp.bdaddr, &dev->bdaddr);
cp.pscan_rep_mode = 0x02;