mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
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:
parent
e6c9c44e9a
commit
ca1899fc45
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user