forked from Mirrors/btrfs-progs
mkfs.btrfs: fix error text in '-r' mode
Smart gcc noticed use of uninitialized warning when compiled with -O0 flags: mkfs.c:1291: error: 'file' may be used uninitialized in this function Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Hugo Mills <hugo@carfax.org.uk>master
parent
d69c30808c
commit
925ac32518
2
mkfs.c
2
mkfs.c
|
@ -1287,13 +1287,13 @@ int main(int ac, char **av)
|
|||
block_count = dev_block_count;
|
||||
} else {
|
||||
ac = 0;
|
||||
file = output;
|
||||
fd = open_target(output);
|
||||
if (fd < 0) {
|
||||
fprintf(stderr, "unable to open the %s\n", file);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
file = output;
|
||||
first_file = file;
|
||||
block_count = size_sourcedir(source_dir, sectorsize,
|
||||
&num_of_meta_chunks, &size_of_data);
|
||||
|
|
Loading…
Reference in New Issue