diff options
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/mkfs.minix.c | 2 | ||||
-rw-r--r-- | disk-utils/sfdisk.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c index 54c47da7e..8e6811f49 100644 --- a/disk-utils/mkfs.minix.c +++ b/disk-utils/mkfs.minix.c @@ -685,7 +685,7 @@ static int find_super_magic(const struct fs_control *ctl) static void determine_device_blocks(struct fs_control *ctl, const struct stat *statbuf) { - unsigned long long dev_blocks; + unsigned long long dev_blocks = 0; if (S_ISBLK(statbuf->st_mode)) { int sectorsize; diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index 52ccc5251..2427cef5b 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -1724,7 +1724,7 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv) nparts = fdisk_table_get_nents(tb); if (nparts) { - size_t cur_partno; + size_t cur_partno = (size_t) -1; struct fdisk_partition *pa = fdisk_table_get_partition(tb, nparts - 1); assert(pa); |