Re: [Qemu-devel] [PATCH] gtk: initialize zoom_to_fit

2018-10-04 Thread Marc-André Lureau
Hi

On Thu, Oct 4, 2018 at 9:36 AM Gerd Hoffmann  wrote:
>
> Fixes: CID 1395988
> Signed-off-by: Gerd Hoffmann 

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
>
>


-- 
Marc-André Lureau



[Qemu-devel] [PATCH] gtk: initialize zoom_to_fit

2018-10-03 Thread Gerd Hoffmann
Fixes: CID 1395988
Signed-off-by: Gerd Hoffmann 
---
 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