mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
d37adb099c
commit
2000cbc50d
1 changed files with 1 additions and 1 deletions
|
@ -642,7 +642,7 @@ static int get_bits_from_size(size_t size)
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue