| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7940db7 commit 4a2c6ff
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -240,8 +240,7 @@ std::string PathResolve(Environment* env, | |||
| 240 | 240 | const size_t numArgs = paths.size(); | |
| 241 | 241 | ||
| 242 | 242 | for (int i = numArgs - 1; i >= -1 && !resolvedAbsolute; i--) { | |
| 243 | - const std::string& path = | ||
| 244 | - (i >= 0) ? std::string(paths[i]) : env->GetCwd(env->exec_path()); | ||
| 243 | + const std::string& path = (i >= 0) ? std::string(paths[i]) : cwd; | ||
| 245 | 244 | ||
| 246 | 245 | if (!path.empty()) { | |
| 247 | 246 | resolvedPath = std::string(path) + "/" + resolvedPath; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments