diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-13 21:42:37 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-13 21:42:37 +0000 |
commit | a29d6c2bccea57256acfbda832dd2837f8e45d34 (patch) | |
tree | 9500e97ffffd1432a0817e1ea5fc699a02a7c169 /hcid/dbus.c | |
parent | b8f1ba37289709f04519099e3f17f82a1c41f349 (diff) |
Fix init of struct hci_dbus_data
Diffstat (limited to 'hcid/dbus.c')
-rw-r--r-- | hcid/dbus.c | 6 |
1 files 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)) { |