mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xl: start numbering vifs from 0
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> xen-unstable changeset: 21805:2047364f0bdf xen-unstable date: Wed Jul 14 16:46:49 2010 +0100
This commit is contained in:
1 parent
a3e6724c64
commit
0e5d044c9f
1 file changed
+1
-1
@@ -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;
|
||||
|
||||