[libvirt] [PATCH] check return values of virBufferTrim