Fix size reporting for disks without partitions.

* src/parthelper.c: Patch from Cole Robinson, fix size reporting for
  disks without partitions.
Daniel
This commit is contained in:
Daniel Veillard
2008-08-20 13:20:01 +00:00
parent 4240b3fd63
commit ace1b6bf98
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ int main(int argc, char **argv)
}
/* Get the first partition, and then iterate over all */
part = ped_disk_get_partition(disk, 1);
part = ped_disk_next_partition(disk, NULL);
while (part) {
const char *type;
const char *content;