From 0e5d044c9ff44e64080da21fec7ef5d613898be4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 16 Jul 2010 14:01:50 +0100 Subject: [PATCH] xl: start numbering vifs from 0 Signed-off-by: Stefano Stabellini xen-unstable changeset: 21805:2047364f0bdf xen-unstable date: Wed Jul 14 16:46:49 2010 +0100 --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 9099993972..61cbf5e7ab 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -620,7 +620,7 @@ static void parse_config_data(const char *configfile_filename_report, char *buf2 = strdup(buf); char *p, *p2; *vifs = (libxl_device_nic *) realloc(*vifs, sizeof (libxl_device_nic) * ((*num_vifs) + 1)); - init_nic_info((*vifs) + (*num_vifs), (*num_vifs) + 1); + init_nic_info((*vifs) + (*num_vifs), (*num_vifs)); p = strtok(buf2, ","); if (!p) goto skip; -- 2.39.5