Skip to content

Commit 659c241

Browse files
pfalconnashif
authored andcommitted
samples: net: big_http_download: Ignore close() return value.
We aren't interested in doing error handling for close(), close() is itself on error handling path, and its purpose if to free socket resources. Coverity-CID: 186062 Fixes: #7713 Signed-off-by: Paul Sokolovsky <[email protected]>
1 parent 201a1b4 commit 659c241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/net/sockets/big_http_download/src/big_http_download.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void download(struct addrinfo *ai)
172172
}
173173

174174
error:
175-
close(sock);
175+
(void)close(sock);
176176
}
177177

178178
int main(void)

0 commit comments

Comments
 (0)