• E
    maint: avoid static zero init in tests · a396c11e
    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.
    
    * tests/eventtest.c: Fix initialization.
    * tests/testutils.c: Likewise.
    * tests/virhostdevtest.c: Likewise.
    * tests/virportallocatortest.c: Likewise.
    * tests/virscsitest.c: Likewise.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    a396c11e
testutils.c 26.3 KB