From 41174221fbafb10abfe87f4e0120be7d9666fa4b Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 2 Aug 2011 12:28:59 +0200 Subject: [PATCH] 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. --- server/red_worker.c | 2 ++ 1 file changed, 2 insertions(+) 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); }