diff options
Diffstat (limited to 'src/env.cc')
-rw-r--r-- | src/env.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.cc b/src/env.cc index 936b9a1854..80079c4f6e 100644 --- a/src/env.cc +++ b/src/env.cc @@ -277,7 +277,7 @@ std::string GetExecPath(const std::vector<std::string>& argv) { uv_fs_t req; req.ptr = nullptr; if (0 == - uv_fs_realpath(env->event_loop(), &req, exec_path.c_str(), nullptr)) { + uv_fs_realpath(nullptr, &req, exec_path.c_str(), nullptr)) { CHECK_NOT_NULL(req.ptr); exec_path = std::string(static_cast<char*>(req.ptr)); } |