Re: [libvirt PATCH 05/13] conf: domain_addr: use g_new0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> @@ -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.




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux