]> Git Repo - qemu.git/commitdiff
gtk: fix uninitialized variable
authorPaolo Bonzini <[email protected]>
Wed, 3 Oct 2018 12:11:38 +0000 (14:11 +0200)
committerGerd Hoffmann <[email protected]>
Fri, 12 Oct 2018 12:49:03 +0000 (14:49 +0200)
zoom_to_fit is never initialized to false, Coverity complains
(not sure why GCC does not).

Fixes: e8b1386ea1719525a1a92df03377764703fe8c64
Cc: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20181003121138[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
ui/gtk.c

index 1d68276253f514494022635762bd9c141bd7120d..c4dd17a6fa9abdee557ce01de4dd1c1d0e710558 100644 (file)
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -2138,7 +2138,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;
This page took 0.02547 seconds and 4 git commands to generate.