[libvirt PATCH v2 08/10] tests: Prevent malloc with size 0