Revision 7267c094 hw/pcie_port.c

b/hw/pcie_port.c
76 76
    if (c) {
77 77
        return;
78 78
    }
79
    c = qemu_mallocz(sizeof(*c));
79
    c = g_malloc0(sizeof(*c));
80 80
    c->number = chassis_number;
81 81
    QLIST_INIT(&c->slots);
82 82
    QLIST_INSERT_HEAD(&chassis, c, next);

Also available in: Unified diff