Commit c7085da7266120a8594f8fddcbf3b6839a8eda58

Authored by Blue Swirl
1 parent 4f72c4dd

Avoid gcc 4.4 warning about uninitialized field

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing 1 changed file with 1 additions and 0 deletions
hw/virtio-blk.c
... ... @@ -299,6 +299,7 @@ static void virtio_blk_update_config(VirtIODevice *vdev, uint8_t *config)
299 299 stw_raw(&blkcfg.cylinders, cylinders);
300 300 blkcfg.heads = heads;
301 301 blkcfg.sectors = secs;
  302 + blkcfg.size_max = 0;
302 303 memcpy(config, &blkcfg, sizeof(blkcfg));
303 304 }
304 305  
... ...