1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: Fix Coverity ID 703870 Uninitialized scalar variable

According to man 2 recvmsg this might be unnecessary, but it does
not hurt either

Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2012-06-11 11:16:12 +02:00 committed by Jeremy Allison
parent 386be83cbd
commit 2e77833641

View File

@ -145,6 +145,7 @@ static ssize_t read_fd(int fd, void *ptr, size_t nbytes, int *recvfd)
msg.msg_name = NULL; msg.msg_name = NULL;
msg.msg_namelen = 0; msg.msg_namelen = 0;
msg.msg_flags = 0;
iov[0].iov_base = (void *)ptr; iov[0].iov_base = (void *)ptr;
iov[0].iov_len = nbytes; iov[0].iov_len = nbytes;