summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2011-06-04 11:19:24 +0300
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:18:58 -0400
commit925ac325185d56e69343c5775765f7cf94238b31 (patch)
tree177acdc3fbd378374ffc0cab45f2fbe54dbe724b /mkfs.c
parentd69c30808c07f144403f508885f6f1d569f888bb (diff)
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>
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs.c b/mkfs.c
index b93b874e..e191b7f2 100644
--- a/mkfs.c
+++ b/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);