[libvirt PATCH 05/13] conf: domain_addr: use g_new0
Erik Skultety
eskultet at redhat.com
Thu Oct 8 07:59:47 UTC 2020
> @@ -1592,8 +1585,8 @@ virDomainVirtioSerialAddrSetAddController(virDomainVirtioSerialAddrSetPtr addrs,
> VIR_DEBUG("Adding virtio serial controller index %u with %d"
> " ports to the address set", cont->idx, ports);
>
> - if (VIR_ALLOC(cnt) < 0)
> - goto cleanup;
> + cnt = g_new0(virDomainVirtioSerialController,
> + 1);
Make ^these a single line.
More information about the libvir-list
mailing list