[Spice-devel] [PATCH] marshaller: fix uninitialized field usage
Frediano Ziglio
fziglio at redhat.com
Wed Feb 3 12:09:57 CET 2016
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
More information about the Spice-devel
mailing list