vz: Replace virStringSplitCount(, , , NULL) with virStringSplit

The caller doesn't care about the number of tokens so use the function
which doesn't return it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2020-10-20 10:08:43 +02:00
parent e6c9c44e9a
commit ca1899fc45

View File

@ -745,7 +745,7 @@ prlsdkGetFSInfo(PRL_HANDLE prldisk,
goto cleanup;
}
if (!(matches = virStringSplitCount(uri->path, "/", 0, NULL)) ||
if (!(matches = virStringSplit(uri->path, "/", 0)) ||
!matches[0]) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("splitting StorageUrl failed %s"), uri->path);