commit | 2000cbc50d3ec39086d1a831e59833d35f500891 | [log] [tgz] |
---|---|---|
author | Blue Swirl <blauwirbel@gmail.com> | Sat Aug 29 16:37:26 2009 +0300 |
committer | Blue Swirl <blauwirbel@gmail.com> | Sat Aug 29 16:37:26 2009 +0300 |
tree | b3b65e031340a0842a8ff96c25d2064f7f07e6e1 | |
parent | d37adb099c7f3c80841a4bab5cd6677c3fabdfc4 [diff] [blame] |
Fix gcc 3 warning about uninitialized variable If nb_sectors is 0, cluster_offset will not be initialized. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
diff --git a/block/qcow2.c b/block/qcow2.c index a9c39bd..9637f2e 100644 --- a/block/qcow2.c +++ b/block/qcow2.c
@@ -642,7 +642,7 @@ static int preallocate(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; - uint64_t cluster_offset; + uint64_t cluster_offset = 0; uint64_t nb_sectors; uint64_t offset; int num;