[Spice-commits] common/marshaller.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Wed Feb 3 11:49:23 UTC 2016


 common/marshaller.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit fd9ba72f1a154249b039ebac9a38fe76b175cb7d
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Wed Feb 3 11:09:16 2016 +0000

    marshaller: fix uninitialized field usage
    
    has_fd was not initialized.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Marc-André Lureau <mlureau at redhat.com>

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)


More information about the Spice-commits mailing list