summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-20 14:45:45 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-20 14:45:45 +0100
commiteb00bd14df2072acf9f80912153476ea6e657b07 (patch)
treeafdbf7b2bbc5d4d52d0b0e672d618bfab96642ff /src/util.cc
parenta5585150f0ff8d27ddd22792f521f1374a3eedd8 (diff)
Store PATH in env in configuration.cc for use in future reconfigure calls.
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