mirror of https://github.com/xqemu/xqemu.git
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);
|
||||
blkcfg.heads = heads;
|
||||
blkcfg.sectors = secs;
|
||||
blkcfg.size_max = 0;
|
||||
memcpy(config, &blkcfg, sizeof(blkcfg));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue