mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 10:19:52 +00:00
Avoid gcc 4.4 warning about uninitialized field
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
4f72c4dded
commit
c7085da726
@ -299,6 +299,7 @@ static void virtio_blk_update_config(VirtIODevice *vdev, uint8_t *config)
|
|||||||
stw_raw(&blkcfg.cylinders, cylinders);
|
stw_raw(&blkcfg.cylinders, cylinders);
|
||||||
blkcfg.heads = heads;
|
blkcfg.heads = heads;
|
||||||
blkcfg.sectors = secs;
|
blkcfg.sectors = secs;
|
||||||
|
blkcfg.size_max = 0;
|
||||||
memcpy(config, &blkcfg, sizeof(blkcfg));
|
memcpy(config, &blkcfg, sizeof(blkcfg));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user