[Spice-devel] [PATCH] marshaller: fix uninitialized field usage

Marc-André Lureau mlureau at redhat.com
Wed Feb 3 12:42:01 CET 2016


ack

----- Original Message -----
> has_fd was not initialized.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  common/marshaller.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/common/marshaller.c b/common/marshaller.c
> index cffc641..00a7123 100644
> --- a/common/marshaller.c
> +++ b/common/marshaller.c
> @@ -117,6 +117,7 @@ static void spice_marshaller_init(SpiceMarshaller *m,
>      m->items_size = N_STATIC_ITEMS;
>      m->items = m->static_items;
>      m->fd = -1;
> +    m->has_fd = false;
>  }
>  
>  SpiceMarshaller *spice_marshaller_new(void)
> --
> 2.4.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list