Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 392

kvm-83-270.el5_11.src.rpm

From 4c030ffb1f708764e52b5d52afa4d9236da457a4 Mon Sep 17 00:00:00 2001
From: Eduardo Habkost <ehabkost@redhat.com>
Date: Thu, 17 Sep 2009 14:06:03 -0300
Subject: [PATCH 30/38] initialize 'blen' and 'pa' variables to 0.

RH-Author: Juan Quintela <quintela@redhat.com>
Message-id: <e72dc7cc57c00108d6a213761d1c18a0b030a903.1249487147.git.quintela@redhat.com>
Patchwork-id: 3199
O-Subject: [PATCH 30/38] initialize 'blen' and 'pa' variables to 0.
Bugzilla: 515749
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
RH-Acked-by: Dor Laor <dlaor@redhat.com>
RH-Acked-by: Markus Armbruster <armbru@redhat.com>

Logic is too complicated and gcc don't get it right

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 qemu/hw/extboot.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/hw/extboot.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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) {
-- 
1.6.3.rc4.29.g8146