mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
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.
This commit is contained in:
parent
a26f5714e4
commit
41174221fb
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user