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
Sergei Trofimovich 2011-06-04 11:19:24 +03:00 committed by Chris Mason
parent d69c30808c
commit 925ac32518
1 changed files with 1 additions and 1 deletions

2
mkfs.c
View File

@ -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);