summaryrefslogtreecommitdiffstats
path: root/hcid/dbus.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-08-18 23:25:24 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-08-18 23:25:24 +0000
commit9f3d6b792cda3e1473112331c4aeb116906fc5a1 (patch)
treecdcb9655084c98ef87b3aecf358a8f37447ea9f5 /hcid/dbus.c
parent1c5950bc576797957d41fe9ce746b51c9b05cd9b (diff)
Initialize peer_addr to avoid invalid free
Diffstat (limited to 'hcid/dbus.c')
-rw-r--r--hcid/dbus.c2
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;