From ca1899fc455321427ab60424b61a68715342b036 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 20 Oct 2020 10:08:43 +0200 Subject: [PATCH] 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 Reviewed-by: Michal Privoznik --- src/vz/vz_sdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c index 00891dc16a..9ea0edaf97 100644 --- a/src/vz/vz_sdk.c +++ b/src/vz/vz_sdk.c @@ -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);