aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-06-13 13:20:25 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-06-13 13:20:25 +0000
commitc7085da7266120a8594f8fddcbf3b6839a8eda58 (patch)
tree62f66c5080b3f453c291823c88f00f9fa8c1cc8f
parent4f72c4dded904e77b68b14a80a749add1ec2992b (diff)
Avoid gcc 4.4 warning about uninitialized field
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/virtio-blk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 8dd3c7ac52..9a0c0674fc 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.c
@@ -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));
}