diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-26 14:13:50 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-26 14:13:50 +0000 |
commit | f58e49eb635ebd285682e78d555179d4105f3f38 (patch) | |
tree | ba72dde07e6a00ccdaa1f8c814e8012b801c306c /hcid | |
parent | 3d16152fd30f2570ad8e9bb2427045e6fd317ce3 (diff) |
initialize name request return value struct to 0 before using it (valgrind was complaining about it)
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-hci.c | 1 |
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; |