Skip to content

Commit 939c8ed

Browse files
bmeckjasnell
authored andcommitted
module: coverity fixes for ESM C++
PR-URL: #15275 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3bf718c commit 939c8ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module_wrap.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ inline const struct read_result read_file(uv_file file) {
325325
}
326326
struct file_check {
327327
bool failed = true;
328-
uv_file file;
328+
uv_file file = -1;
329329
} file_check;
330330
inline const struct file_check check_file(URL search,
331331
bool close = false,
@@ -461,7 +461,7 @@ URL Resolve(std::string specifier, URL* base, bool read_pkg_json) {
461461
} else {
462462
return resolve_module(specifier, base);
463463
}
464-
return URL("");
464+
UNREACHABLE();
465465
}
466466

467467
void ModuleWrap::Resolve(const FunctionCallbackInfo<Value>& args) {

0 commit comments

Comments
 (0)