summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-02-03 11:09:16 +0000
committerFrediano Ziglio <fziglio@redhat.com>2016-02-03 11:48:43 +0000
commitfd9ba72f1a154249b039ebac9a38fe76b175cb7d (patch)
treea9d261ffb0ee2974d0cbf47a36713394c8861587
parent472e563591a80f75679be2ea855e660c6ee51721 (diff)
downloadspice-common-fd9ba72f1a154249b039ebac9a38fe76b175cb7d.tar.gz
spice-common-fd9ba72f1a154249b039ebac9a38fe76b175cb7d.tar.xz
spice-common-fd9ba72f1a154249b039ebac9a38fe76b175cb7d.zip
marshaller: fix uninitialized field usage
has_fd was not initialized. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Marc-André Lureau <mlureau@redhat.com>
-rw-r--r--common/marshaller.c1
1 files changed, 1 insertions, 0 deletions
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)