s3: Fix Coverity ID 703870 Uninitialized scalar variable
authorVolker Lendecke <vl@samba.org>
Mon, 11 Jun 2012 09:16:12 +0000 (11:16 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 11 Jun 2012 21:54:38 +0000 (14:54 -0700)
According to man 2 recvmsg this might be unnecessary, but it does
not hurt either

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_aio_fork.c

index cc13a9bd1cd7cee5d0f7015d337fcdf1b6b187e4..4be21f7d97f539f48548418c5f5892fe72b0495f 100644 (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_namelen = 0;
+       msg.msg_flags = 0;
 
        iov[0].iov_base = (void *)ptr;
        iov[0].iov_len = nbytes;