diff options
-rw-r--r-- | icespider/compile/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/icespider/compile/main.cpp b/icespider/compile/main.cpp index 2ea668c..cd50f15 100644 --- a/icespider/compile/main.cpp +++ b/icespider/compile/main.cpp @@ -23,7 +23,7 @@ defaultPostProcessor() constexpr std::array<const std::pair<std::string_view, std::string_view>, 1> pps {{ {"clang-format", "-i"}, }}; - const std::string_view path {getenv("PATH")}; + const std::string_view path {getenv("PATH") ?: "/usr/bin"}; const auto pathBegin = make_split_iterator(path, first_finder(":", boost::is_equal())); for (const auto & [cmd, opts] : pps) { for (auto p = pathBegin; p != decltype(pathBegin) {}; ++p) { |