src: check uv_fs_close() return value · nodejs/node@bb98f27 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit bb98f27
src: check uv_fs_close() return value
Coverity was complaining about not checking the return value. PR-URL: #26967Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Richard Lau riclau@uk.ibm.com Reviewed-By: Ben Noordhuis info@bnoordhuis.nl
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -494,7 +494,7 @@ inline Maybe<uv_file> OpenDescriptor(const std::string& path) { | ||
494 | 494 | |
495 | 495 | inline void CloseDescriptor(uv_file fd) { |
496 | 496 | uv_fs_t fs_req; |
497 | -uv_fs_close(nullptr, &fs_req, fd, nullptr); | |
497 | +CHECK_EQ(0, uv_fs_close(nullptr, &fs_req, fd, nullptr)); | |
498 | 498 | uv_fs_req_cleanup(&fs_req); |
499 | 499 | } |
500 | 500 |