diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-10-03 14:11:38 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-10-12 14:49:03 +0200 |
commit | 1d454c3fee00d9d1e46e1ec6788d49da5a0bfdb0 (patch) | |
tree | 786796348b44d7ba0831c58c459f148d63662d2f /ui | |
parent | 1abcfe9e299b6e48792ddfa6f2ab8cec93f16823 (diff) | |
download | qemu-1d454c3fee00d9d1e46e1ec6788d49da5a0bfdb0.zip qemu-1d454c3fee00d9d1e46e1ec6788d49da5a0bfdb0.tar.gz qemu-1d454c3fee00d9d1e46e1ec6788d49da5a0bfdb0.tar.bz2 |
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 <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20181003121138.22037-1-pbonzini@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |