From fd9ba72f1a154249b039ebac9a38fe76b175cb7d Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Wed, 3 Feb 2016 11:09:16 +0000 Subject: marshaller: fix uninitialized field usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit has_fd was not initialized. Signed-off-by: Frediano Ziglio Acked-by: Marc-André Lureau --- 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) -- cgit