diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-02-27 09:17:39 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-02-27 09:17:39 +0000 |
commit | b7d94f7d97e66877db9778b05faa205831e8e0d4 (patch) | |
tree | 536983b37d1e81e28ec55a3b07b019eb4574811e /hcid | |
parent | 3469f26baa5efdf0d852714cd8f4af4a7dd0afc0 (diff) |
Fix access to uninitialized memory
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus.c b/hcid/dbus.c index 90bbe7ea..4f30a42c 100644 --- a/hcid/dbus.c +++ b/hcid/dbus.c @@ -1078,7 +1078,7 @@ void hcid_dbus_setname_complete(bdaddr_t *local) dd = hci_open_dev(id); if (dd < 0) { syslog(LOG_ERR, "HCI device open failed: hci%d", id); - memset(&rq, 0, sizeof(rq)); + memset(&rp, 0, sizeof(rp)); } else { memset(&rq, 0, sizeof(rq)); rq.ogf = OGF_HOST_CTL; |