[libvirt] [PATCH] tools: fix a judgment of equalling zero about an array's length