[PATCH 4/4] lxd_domain: Require that VIR_LXC_DOMAIN_NAMESPACE_SOURCE_NONE is zero

Laine Stump laine at redhat.com
Thu Dec 17 02:53:59 UTC 2020


On 12/16/20 4:13 PM, Michal Privoznik wrote:
> Our parser code relies on the fact that
> VIR_LXC_DOMAIN_NAMESPACE_SOURCE_NONE has value of zero and thus
> uses g_new0().  But strictly speaking, this is not mandated by
> the enum typedef. Fix that.


Is there really any C compiler that doesn't make the first value a 0 by 
default? (If so, I wonder why?)


Reviewed-by: Laine Stump <laine at redhat.com>





More information about the libvir-list mailing list