Skip to contentSkip to conversation

gtk: initialize zoom_to_fit

PATCH In review Gerd Hoffmann 2 participants 2 messages Oct 4, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gtk: initialize zoom_to_fit

Fixes CID 1395988
---
 ui/gtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ui/gtk.c +1 -1
index 3ddb5fe162..ec935fff90 100644
@@ -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.9.3
#1 lore raw

Hi

Quoted 3 lines · Gerd Hoffmann
Fixes CID 1395988

Same patch sent by Paolo yesterday:
https://lists.nongnu.org/archive/html/qemu-devel/2018-10/msg00474.html

Quoted 21 lines
---
 ui/gtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ui/gtk.c +1 -2
index 3ddb5fe162..ec935fff90 100644
@@ -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;
--

2.9.3

Signature · 1 line
Marc-André Lureau