gtk: fix uninitialized variable
PATCH 1/1 gtk: fix uninitialized variable
zoom_to_fit is never initialized to false, Coverity complains (not sure why GCC does not).
Fixes e8b1386ea1719525a1a92df03377764703fe8c64
Signed-off-by Paolo Bonzini <[email protected]>
--- ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ui/gtk.c +1 -1
@@ -2136,7 +2136,7 @@ static GSList *gd_vc_gfx_init(GtkDisplayState *s, VirtualConsole *vc, QemuConsole *con, int idx, GSList *group, GtkWidget *view_menu) { - bool zoom_to_fit; + bool zoom_to_fit = false; vc->label =qemu_console_get_label (con); vc->s = s;
Signature · 1 line
2.17.1
Quoted 6 lines · Paolo Bonzini
zoom_to_fitis never initialized to false, Coverity complains (not sure why GCC does not).Fixes e8b1386ea1719525a1a92df03377764703fe8c64Signed-off-by Paolo Bonzini <[email protected]>
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 18 lines
--- ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)ui/gtk.c +1
-1@@ -2136,7 +2136,7 @@ static GSList *gd_vc_gfx_init(GtkDisplayState *s, VirtualConsole *vc, QemuConsole *con, int idx, GSList *group, GtkWidget *view_menu) { - bool zoom_to_fit; + bool zoom_to_fit = false; vc->label =qemu_console_get_label (con); vc->s = s;