• E
    maint: avoid static zero init in core files · 39871fce
    Eric Blake 提交于
    C guarantees that static variables are zero-initialized.  Some older
    compilers (and also gcc -fno-zero-initialized-in-bss) create larger
    binaries if you explicitly zero-initialize a static variable.
    
    * src/libvirt.c: Fix initialization.
    * src/util/viralloc.c: Likewise.
    * src/util/virdbus.c: Likewise.
    * src/util/virevent.c: Likewise.
    * src/util/virfile.c (safezero): Likewise.
    * src/util/virlog.c: Likewise.
    * src/util/virnetlink.c: Likewise.
    * src/util/virthread.h (VIR_ONCE_GLOBAL_INIT): Likewise.
    * src/util/virprocess.c (virProcessGetStartTime): Likewise.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    39871fce
virnetlink.c 23.1 KB