Skip to content

Commit

Permalink
src: check uv_fs_close() return value
Browse files Browse the repository at this point in the history
Coverity was complaining about not checking the return value.

PR-URL: #26967
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
cjihrig authored and BethGriggs committed Apr 4, 2019
1 parent fc3a0da commit 828a643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ inline Maybe<uv_file> OpenDescriptor(const std::string& path) {

inline void CloseDescriptor(uv_file fd) {
uv_fs_t fs_req;
uv_fs_close(nullptr, &fs_req, fd, nullptr);
CHECK_EQ(0, uv_fs_close(nullptr, &fs_req, fd, nullptr));
uv_fs_req_cleanup(&fs_req);
}

Expand Down

0 comments on commit 828a643

Please sign in to comment.