Avoid gcc 4.4 warning about uninitialized field

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2009-06-13 13:20:25 +00:00
parent 4f72c4dded
commit c7085da726
1 changed files with 1 additions and 0 deletions

View File

@ -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));
}