diff mbox

extboot: silence compiler warning

Message ID 49D505AD.2000608@web.de (mailing list archive)
State Not Applicable
Headers show

Commit Message

Jan Kiszka April 2, 2009, 6:36 p.m. UTC
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 qemu/hw/extboot.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity April 5, 2009, 4:13 p.m. UTC | #1
Jan Kiszka wrote:


Applied, thanks.
diff mbox

Patch

diff --git a/qemu/hw/extboot.c b/qemu/hw/extboot.c
index 32e6226..13ffafa 100644
--- a/qemu/hw/extboot.c
+++ b/qemu/hw/extboot.c
@@ -77,8 +77,8 @@  static void extboot_write_cmd(void *opaque, uint32_t addr, uint32_t value)
     BlockDriverState *bs = opaque;
     int cylinders, heads, sectors, err;
     uint64_t nb_sectors;
-    target_phys_addr_t pa;
-    int blen;
+    target_phys_addr_t pa = 0;
+    int blen = 0;
     void *buf = NULL;
 
     if (cmd->type == 0x01 || cmd->type == 0x02) {