summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc
index db5a5f6..76d380b 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -168,12 +168,10 @@ std::string esc(const std::string& in)
return out;
}
-std::vector<std::string> get_paths()
+std::vector<std::string> get_paths(const std::string& path_env)
{
std::vector<std::string> paths;
- std::string path_env = std::getenv("PATH");
-
#ifdef _WIN32
const char sep{';'};
#else