aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();