projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e2792
)
xl: Start enumerating vifs from 0.
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 7 May 2010 08:15:19 +0000
(09:15 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Fri, 7 May 2010 08:15:19 +0000
(09:15 +0100)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/xl_cmdimpl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/xl_cmdimpl.c
b/tools/libxl/xl_cmdimpl.c
index 329bf235f88d31f56472fe86ea0ea60314716192..18f4b5fc40974b7913d3d3f026ed4a20ce599766 100644
(file)
--- a/
tools/libxl/xl_cmdimpl.c
+++ b/
tools/libxl/xl_cmdimpl.c
@@
-544,7
+544,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;