summaryrefslogtreecommitdiff
path: root/bt-host.c
diff options
context:
space:
mode:
Diffstat (limited to 'bt-host.c')
-rw-r--r--bt-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bt-host.c b/bt-host.c
index 095254ddc6..df5b7cdace 100644
--- a/bt-host.c
+++ b/bt-host.c
@@ -177,7 +177,7 @@ struct HCIInfo *bt_host_hci(const char *id)
}
# endif
- s = qemu_mallocz(sizeof(struct bt_host_hci_s));
+ s = g_malloc0(sizeof(struct bt_host_hci_s));
s->fd = fd;
s->hci.cmd_send = bt_host_cmd;
s->hci.sco_send = bt_host_sco;