[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH qemu-trad] cirrus: fix an uninitialized variable



Noticed by paying attention to a compiler warning (reported for the
only caller of the function modified, vga_ioport_read()).

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -1658,8 +1658,8 @@ cirrus_hook_read_cr(CirrusVGAState * s, 
     default:
 #ifdef DEBUG_CIRRUS
        printf("cirrus: inport cr_index %02x\n", reg_index);
-       *reg_value = 0xff;
 #endif
+       *reg_value = 0xff;
        break;
     }
 



Attachment: qemu-trad-cirrus-leak.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.