mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Use variable
This commit is contained in:
parent
8f08fe80fd
commit
7d3127ac2b
1 changed files with 1 additions and 1 deletions
|
@ -1895,7 +1895,7 @@ std::string get_executable_path(const char *argv0) {
|
|||
auto dellen = const_strlen(" (deleted)");
|
||||
if (buffstr.size() > dellen &&
|
||||
buffstr.compare(buffstr.size() - dellen, dellen, " (deleted)") == 0) {
|
||||
buffstr = buffstr.substr(0, buffstr.size() - const_strlen(" (deleted)"));
|
||||
buffstr = buffstr.substr(0, buffstr.size() - dellen);
|
||||
}
|
||||
}
|
||||
return buffstr;
|
||||
|
|
Loading…
Reference in a new issue