From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH] extboot: silence compiler warning Date: Thu, 02 Apr 2009 20:36:29 +0200 Message-ID: <49D505AD.2000608@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit To: kvm-devel Return-path: Received: from fmmailgate01.web.de ([217.72.192.221]:53693 "EHLO fmmailgate01.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758669AbZDBShE (ORCPT ); Thu, 2 Apr 2009 14:37:04 -0400 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id BCBA8FF54E8D for ; Thu, 2 Apr 2009 20:36:29 +0200 (CEST) Received: from [88.65.254.118] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1LpRm9-0007qU-00 for kvm@vger.kernel.org; Thu, 02 Apr 2009 20:36:29 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Jan Kiszka --- 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) {