[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] libxl: fix initialization of the disk parsing iterator



Fix the initialization of the disk parsing iterator.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>

diff -r f9bb0bbea7c2 tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c    Thu May 12 16:42:54 2011 +0100
+++ b/tools/libxl/libxl_dm.c    Mon May 23 16:51:19 2011 +0000
@@ -375,7 +375,7 @@ static char ** libxl__build_device_model
     flexarray_append(dm_args, libxl__sprintf(gc, "%d", info->target_ram));
 
     if (info->type == LIBXL_DOMAIN_TYPE_FV) {
-        for (i; i < num_disks; i++) {
+        for (i = 0; i < num_disks; i++) {
             int disk, part;
             int dev_number =
                 libxl__device_disk_dev_number(disks[i].vdev, &disk, &part);

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.