[libvirt] [PATCH 05/18] vshReadlineParse: Drop code duplication