]> git.proxmox.com Git - qemu.git/blobdiff - bt-vhci.c
dma: Fix stupid typo/thinko
[qemu.git] / bt-vhci.c
index 3c5772093efc340e4d60f86e093fb8318c2ed141..bbc102985434e1ce217319e5e50ec612acfc39d1 100644 (file)
--- a/bt-vhci.c
+++ b/bt-vhci.c
@@ -156,7 +156,7 @@ void bt_vhci_init(struct HCIInfo *info)
         exit(-1);
     }
 
-    s = qemu_mallocz(sizeof(struct bt_vhci_s));
+    s = g_malloc0(sizeof(struct bt_vhci_s));
     s->fd = fd;
     s->info = info ?: qemu_next_hci();
     s->info->opaque = s;