diff mbox series

gtk: initialize zoom_to_fit

Message ID 20181004053507.19883-1-kraxel@redhat.com
State New
Headers show
Series gtk: initialize zoom_to_fit | expand

Commit Message

Gerd Hoffmann Oct. 4, 2018, 5:35 a.m. UTC
Fixes: CID 1395988
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/gtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marc-André Lureau Oct. 4, 2018, 8:02 a.m. UTC | #1
Hi

On Thu, Oct 4, 2018 at 9:36 AM Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> Fixes: CID 1395988
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

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

> ---
>  ui/gtk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ui/gtk.c b/ui/gtk.c
> index 3ddb5fe162..ec935fff90 100644
> --- a/ui/gtk.c
> +++ b/ui/gtk.c
> @@ -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
>
>
diff mbox series

Patch

diff --git a/ui/gtk.c b/ui/gtk.c
index 3ddb5fe162..ec935fff90 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -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;