From: Peter Krempa Date: Tue, 20 Oct 2020 08:08:43 +0000 (+0200) Subject: vz: Replace virStringSplitCount(, , , NULL) with virStringSplit X-Git-Tag: v7.1.0-rc1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca1899fc455321427ab60424b61a68715342b036;p=thirdparty%2Flibvirt.git 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 --- 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);