summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-10 13:44:09 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-10 13:44:09 +0000
commit4e6726e8029f20be3e08b44760c56fc7a419090b (patch)
tree9c8c55e1f0a5f018db00bfd994bba6a2d29e687f /hcid/adapter.c
parent114762c0ab927bfd19872856d7dba6a375c759ce (diff)
Intial device GetProperties implementation.
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index eca12fbb..754c7b1f 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -3262,7 +3262,7 @@ static DBusHandlerResult create_device(DBusConnection *conn,
return error_connection_attempt_failed(conn, msg, -err);
}
- create = g_malloc0(sizeof(struct create_device_req));
+ create = g_new0(struct create_device_req, 1);
create->conn = dbus_connection_ref(conn);
create->msg = dbus_message_ref(msg);
strcpy(create->address, address);