[libvirt] [PATCHv2 3/8] Remove VIR_STRNDUP usage with checked pointers