Skip to content

Commit

Permalink
samples: net: big_http_download: Ignore close() return value.
Browse files Browse the repository at this point in the history
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: zephyrproject-rtos#7713

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
  • Loading branch information
pfalcon authored and nashif committed May 29, 2018
1 parent 201a1b4 commit 659c241
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void download(struct addrinfo *ai)
}

error:
close(sock);
(void)close(sock);
}

int main(void)
Expand Down

0 comments on commit 659c241

Please sign in to comment.