Skip to content
Permalink
Browse files

src: check uv_fs_close() return value

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 committed Mar 28, 2019
1 parent 9fbf0c6 commit bb98f271815f6f1357c3c7178a3367d439c44029
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/module_wrap.cc
@@ -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);
}

0 comments on commit bb98f27

Please sign in to comment.
You can’t perform that action at this time.