xl: start numbering vifs from 0
PATCH 1/1 xl: start numbering vifs from 0
Signed-off-by Stefano Stabellini <[email protected]>
---
tools/libxl/xl_cmdimpl.c +1 -1
@@ -672,7 +672,7 @@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;