Skip to content

Commit bb98f27

Browse files
committed
src: check uv_fs_close() return value
Coverity was complaining about not checking the return value. PR-URL: #26967 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 9fbf0c6 commit bb98f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ inline Maybe<uv_file> OpenDescriptor(const std::string& path) {
494494

495495
inline void CloseDescriptor(uv_file fd) {
496496
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));
498498
uv_fs_req_cleanup(&fs_req);
499499
}
500500

0 commit comments

Comments
 (0)