xl: start numbering vifs from 0

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
Ian Jackson committed 2010-07-14 16:46:49 +01:00
1 parent 6a8f8977a1
commit 214abecaa3
1 file changed
+1 -1
+1 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.