mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 12:24:55 +00:00
test-stream: initialize msg.msg_flags
Coverity complains the field is not initialized. That's true but man recvmsg specifies that this field is set by recvmsg. To make coverity happy, initialize this field. Signed-off-by: Uri Lublin <uril@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
1a16419431
commit
ee87a36e95
@ -66,6 +66,7 @@ sock_fd_read(int sock, void *buf, ssize_t bufsize, int *fd)
|
||||
msg.msg_iovlen = 1;
|
||||
msg.msg_control = cmsgu.control;
|
||||
msg.msg_controllen = sizeof(cmsgu.control);
|
||||
msg.msg_flags = 0;
|
||||
size = recvmsg(sock, &msg, 0);
|
||||
if (size < 0) {
|
||||
perror ("recvmsg");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user