projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f72c4d
)
Avoid gcc 4.4 warning about uninitialized field
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 13 Jun 2009 13:20:25 +0000
(13:20 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 13 Jun 2009 13:20:25 +0000
(13:20 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/virtio-blk.c
patch
|
blob
|
history
diff --git
a/hw/virtio-blk.c
b/hw/virtio-blk.c
index 8dd3c7ac52d9719d3a4382f4a6720cf6316ef363..9a0c0674fc5d2d074659c03caf78bcfe032d43e1 100644
(file)
--- 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));
}