From: aliguori Date: Fri, 16 Jan 2009 14:27:37 +0000 (+0000) Subject: Fix uninitialized variable warning X-Git-Tag: stefano.display-merge-end~99 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e9ebead2b5c70890454e698d9ff174e3020ea861;p=qemu-xen-3.4-testing.git Fix uninitialized variable warning r6322 introduced a warning pointed out by Jan Kiszka. Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6342 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/hw/pc.c b/hw/pc.c index d64e4426..2b578c54 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -870,11 +870,11 @@ vga_bios_error: fprintf(stderr, "qemu: could not load VGA BIOS '%s'\n", buf); exit(1); } - } - /* setup basic memory access */ - cpu_register_physical_memory(0xc0000, 0x10000, - vga_bios_offset | IO_MEM_ROM); + /* setup basic memory access */ + cpu_register_physical_memory(0xc0000, 0x10000, + vga_bios_offset | IO_MEM_ROM); + } /* map the last 128KB of the BIOS in ISA space */ isa_bios_size = bios_size;