summaryrefslogtreecommitdiffstats
path: root/server/red_worker.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-08-02 12:28:59 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-09-01 03:57:35 +0200
commit41174221fbafb10abfe87f4e0120be7d9666fa4b (patch)
tree647593495531c4ec240b60639f7423855fffd35f /server/red_worker.c
parenta26f5714e4f68c2010333162baf6de459f812f1c (diff)
downloadspice-41174221fbafb10abfe87f4e0120be7d9666fa4b.tar.gz
spice-41174221fbafb10abfe87f4e0120be7d9666fa4b.tar.xz
spice-41174221fbafb10abfe87f4e0120be7d9666fa4b.zip
server: init all fields on SpiceMsgDisplayStreamCreate
red_display_marshall_stream_start initializes a SpiceMsgDisplayStreamCreate structure before marshalling it and sending it on the wire. However, it never fills SpiceMsgDisplayStreamCreate::stamp which then causes a complaint from valgrind. This patch sets this value to 0, it's not used by the client so the value shouldn't matter.
Diffstat (limited to 'server/red_worker.c')
-rw-r--r--server/red_worker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index 43d0bae5..d86da69d 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -8255,6 +8255,8 @@ static void red_display_marshall_stream_start(RedChannelClient *rcc,
stream_create.clip.rects = &clip_rects;
}
+ stream_create.stamp = 0;
+
spice_marshall_msg_display_stream_create(base_marshaller, &stream_create);
}