From a29d6c2bccea57256acfbda832dd2837f8e45d34 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 13 Mar 2006 21:42:37 +0000 Subject: Fix init of struct hci_dbus_data --- hcid/dbus.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hcid/dbus.c b/hcid/dbus.c index 9341200e..c561966f 100644 --- a/hcid/dbus.c +++ b/hcid/dbus.c @@ -248,14 +248,12 @@ static gboolean register_dbus_path(const char *path, uint16_t path_id, uint16_t goto failed; } + memset(data, 0, sizeof(struct hci_dbus_data)); + data->path_id = path_id; data->dev_id = dev_id; data->mode = SCAN_DISABLED; data->discoverable_timeout = DFT_DISCOVERABLE_TIMEOUT; - data->timeout_hits = 0; - data->timeout_handler = NULL; - data->requestor_name = NULL; - data->discovered_devices = NULL; if (fallback) { if (!dbus_connection_register_fallback(connection, path, pvtable, data)) { -- cgit