diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-07 09:39:12 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-07 09:39:12 +0000 |
commit | 7f892d66cd296850f4084f3dcac9cc708dd4ceb5 (patch) | |
tree | 0bc349fc6ab1698ac044e75e1ef85262e8126763 /contrib/netbsd-tests/lib | |
parent | ef9f452651b70947ba8e92c78ad3e190356d119e (diff) | |
download | FreeBSD-src-7f892d66cd296850f4084f3dcac9cc708dd4ceb5.zip FreeBSD-src-7f892d66cd296850f4084f3dcac9cc708dd4ceb5.tar.gz |
MFC r311240:
kqueue_desc_passing: initialize m.msg_flags to 0
This mutes an uninitialized scalar warning from Coverity
CID: 979620
Diffstat (limited to 'contrib/netbsd-tests/lib')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_kevent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_kevent.c b/contrib/netbsd-tests/lib/libc/sys/t_kevent.c index 3858554..8a20d63 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_kevent.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_kevent.c @@ -101,6 +101,9 @@ ATF_TC_BODY(kqueue_desc_passing, tc) m.msg_namelen = 0; m.msg_control = msg; m.msg_controllen = CMSG_SPACE(sizeof(int)); +#ifdef __FreeBSD__ + m.msg_flags = 0; +#endif child = fork(); if (child == 0) { |