| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7a97f3f commit 574afac
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -618,7 +618,7 @@ std::string GetExecPath(const std::vector<std::string>& argv) { | |||
| 618 | 618 | std::string exec_path; | |
| 619 | 619 | if (uv_exepath(exec_path_buf, &exec_path_len) == 0) { | |
| 620 | 620 | exec_path = std::string(exec_path_buf, exec_path_len); | |
| 621 | - } else { | ||
| 621 | + } else if (argv.size() > 0) { | ||
| 622 | 622 | exec_path = argv[0]; | |
| 623 | 623 | } | |
| 624 | 624 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments