mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xl: start numbering vifs from 0
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
1 parent
6a8f8977a1
commit
214abecaa3
1 file changed
+1
-1
@@ -688,7 +688,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;
|
||||
|
||||