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

Gerd Hoffmann posted 1 patch 5 years, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20181004053507.19883-1-kraxel@redhat.com
Test docker-clang@ubuntu failed
Test checkpatch passed
ui/gtk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[Qemu-devel] [PATCH] gtk: initialize zoom_to_fit
Posted by Gerd Hoffmann 5 years, 6 months ago
Fixes: CID 1395988
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 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


Re: [Qemu-devel] [PATCH] gtk: initialize zoom_to_fit
Posted by Marc-André Lureau 5 years, 6 months ago
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
>
>


-- 
Marc-André Lureau