[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: fix initialization of the disk parsing iterator
# HG changeset patch # User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> # Date 1306258386 -3600 # Node ID 6d4b7530cee105a4f0f35c6d90ff9a5ede4f59e0 # Parent 7dd5967b44b47f15678fa7163308e87b0cd74235 libxl: fix initialization of the disk parsing iterator Fix the initialization of the disk parsing iterator. Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r 7dd5967b44b4 -r 6d4b7530cee1 tools/libxl/libxl_dm.c --- a/tools/libxl/libxl_dm.c Tue May 24 18:27:50 2011 +0100 +++ b/tools/libxl/libxl_dm.c Tue May 24 18:33:06 2011 +0100 @@ -375,7 +375,7 @@ 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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |