Fix uninitialized variables, and use -O so gcc starts checking for them
commitf86e8be3f89fe64020aa0bc0d07590aa2ed65250
authorChris Mason <chris.mason@oracle.com>
Thu, 1 May 2008 14:22:47 +0000 (1 10:22 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Thu, 1 May 2008 14:22:47 +0000 (1 10:22 -0400)
tree8f97d1373c8fd9ffbd39474f5ae38f310a1b782a
parent9a34051c5183ef91674420f4326da2390d7e4be6
Fix uninitialized variables, and use -O so gcc starts checking for them

Gcc only sends warnings for uninitialized variables when you compile with -O,
and there were a couple of bugs sprinkled in the code.  The biggest was the
alloc_start variable for mkfs, which can cause strange things to happen.

(thanks to Gabor Micsko for helping to find this)
Makefile
btrfs-vol.c
mkfs.c
utils.c