[libvirt] [PATCH v2 2/4] tools: Check return status on virBufferTrim()