Skip to content

Commit 79728a6

Browse files
cfriedtcarlescufi
authored andcommitted
tests: socket: socketpair: init param before passing by ref
Fixes #25797 Coverity-CID: 210607 Signed-off-by: Christopher Friedt <[email protected]>
1 parent 3f30ce2 commit 79728a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/net/socket/socketpair/src/test_socketpair_happy_path.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ static void happy_path(
131131
* Test with sendmsg(2) / recv(2) - Zephyr lacks recvmsg atm
132132
*/
133133

134+
memset(&msghdr, 0, sizeof(msghdr));
134135
msghdr.msg_iov = &iovec;
135136
msghdr.msg_iovlen = 1;
136137
iovec.iov_base = (void *)expected_msg;

0 commit comments

Comments
 (0)