We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b92a09 commit 58c9f10Copy full SHA for 58c9f10
inc/mkn/kul/os/win/env.hpp
@@ -84,7 +84,7 @@ inline std::string GET(char const* c, std::string default_ = "") {
84
}
85
86
inline void SET(char const* var, char const* val = nullptr) {
87
- if (val and strlen(val) > 0)
+ if (val && strlen(val) > 0)
88
_putenv(std::string(std::string(var) + "=" + std::string(val)).c_str());
89
else // unset
90
_putenv(std::string(std::string(var) + "=").c_str());
0 commit comments