aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-01 10:02:19 +0000
committer_ov4 <ov4@ov4.org>2026-09-01 10:02:19 +0000
commit94c449ca42bd29de2c2fd137945550fe110fcd17 (patch)
tree0de53762cde9c1dfe47711fd3285ccabb15165bb
parente91283fd2e449e17679bb0a911ea03f94cd1d759 (diff)
fix
-rw-r--r--src/path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.cc b/src/path.cc
index 74e8a37..9e4a515 100644
--- a/src/path.cc
+++ b/src/path.cc
@@ -29,7 +29,7 @@ string path_unifier(const string &s, bool is_cmd)
}
// single word, use path
- if (is_cmd && (s.find("/") == s.size()))
+ if (is_cmd && (s.find("/") == string::npos))
{
string path = getenv("PATH");
size_t i = 0, j = 0, l = path.size();