File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -787,7 +787,7 @@ class FdEntry final : public EntryImpl {
787787 public:
788788 static std::unique_ptr<FdEntry> Create (Environment* env, Local<Value> path) {
789789 // We're only going to create the FdEntry if the file exists.
790- uv_fs_t req;
790+ uv_fs_t req = uv_fs_t () ;
791791 auto cleanup = OnScopeLeave ([&] { uv_fs_req_cleanup (&req); });
792792
793793 auto buf = std::make_shared<BufferValue>(env->isolate (), path);
@@ -849,7 +849,7 @@ class FdEntry final : public EntryImpl {
849849 }
850850
851851 static bool CheckModified (FdEntry* entry, int fd) {
852- uv_fs_t req;
852+ uv_fs_t req = uv_fs_t () ;
853853 auto cleanup = OnScopeLeave ([&] { uv_fs_req_cleanup (&req); });
854854 // TODO(jasnell): Note the use of a sync fs call here is a bit unfortunate.
855855 // Doing this asynchronously creates a bit of a race condition tho, a file
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ int RunNodeInstance(MultiIsolatePlatform* platform,
7575 if (snapshot_as_file_it != args.end ()) {
7676 snapshot = node::EmbedderSnapshotData::FromFile (fp);
7777 } else {
78- uv_fs_t req;
78+ uv_fs_t req = uv_fs_t () ;
7979 int statret = uv_fs_stat (nullptr , &req, filename, nullptr );
8080 assert (statret == 0 );
8181 size_t filesize = req.statbuf .st_size ;
You can’t perform that action at this time.
0 commit comments