Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/libxl/xen_xl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libxl/xen_xl.c b/src/libxl/xen_xl.c
index 65cd26bb21..e8a75979d4 100644
--- a/src/libxl/xen_xl.c
+++ b/src/libxl/xen_xl.c
@@ -523,9 +523,11 @@ xenParseXLVnuma(virConfPtr conf,
tmp = g_strdup(vtoken);
g_strfreev(token);
- if (!(token = virStringSplitCount(tmp, ",", 0,
&ndistances)))
+ if (!(token = g_strsplit(tmp, ",", 0)))
goto cleanup;
+ ndistances = g_strv_length(token);
+
if (ndistances != nr_nodes) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("vnuma pnode %d configured '%s'
(count %zu) doesn't fit the number of specified vnodes %zu"),
--
2.29.2