summaryrefslogtreecommitdiff
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
parenta26f5714e4f68c2010333162baf6de459f812f1c (diff)
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.
-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);
}