Re: [PATCH] marshaller: fix uninitialized field usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ack

----- Original Message -----
> has_fd was not initialized.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]