From: Paolo Bonzini Date: Wed, 3 Oct 2018 12:11:38 +0000 (+0200) Subject: gtk: fix uninitialized variable X-Git-Tag: qemu-xen-4.13.0-rc1~625^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1d454c3fee00d9d1e46e1ec6788d49da5a0bfdb0;p=qemu-xen.git gtk: fix uninitialized variable zoom_to_fit is never initialized to false, Coverity complains (not sure why GCC does not). Fixes: e8b1386ea1719525a1a92df03377764703fe8c64 Cc: kraxel@redhat.com Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daudé Message-id: 20181003121138.22037-1-pbonzini@redhat.com Signed-off-by: Gerd Hoffmann --- diff --git a/ui/gtk.c b/ui/gtk.c index 1d68276253..c4dd17a6fa 100644 --- 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;