diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-08-18 23:25:24 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-08-18 23:25:24 +0000 |
commit | 9f3d6b792cda3e1473112331c4aeb116906fc5a1 (patch) | |
tree | cdcb9655084c98ef87b3aecf358a8f37447ea9f5 /hcid/dbus.c | |
parent | 1c5950bc576797957d41fe9ce746b51c9b05cd9b (diff) |
Initialize peer_addr to avoid invalid free
Diffstat (limited to 'hcid/dbus.c')
-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 162745cd..696211d5 100644 --- a/hcid/dbus.c +++ b/hcid/dbus.c @@ -1347,7 +1347,7 @@ void hcid_dbus_disconn_complete(bdaddr_t *local, uint8_t status, uint16_t handle struct active_conn_info *dev; DBusMessage *message; struct slist *l; - char *local_addr, *peer_addr; + char *local_addr, *peer_addr = NULL; bdaddr_t tmp; int id; |