Skip to content

Commit 3f30ce2

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

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
@@ -115,6 +115,7 @@ static void happy_path(
115115

116116
memset(actual_msg, 0, sizeof(actual_msg));
117117

118+
len = 0;
118119
res = recvfrom(sv[(!i) & 1], actual_msg, sizeof(actual_msg), 0,
119120
NULL, &len);
120121
zassert_true(res >= 0, "recvfrom(2) failed: %d", errno);

0 commit comments

Comments
 (0)