We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3588ac commit ab98e60Copy full SHA for ab98e60
src/common/platform_utils.hpp
@@ -83,7 +83,7 @@ static inline std::string PlatformUtilsGetSecureEnv(const char* name) {
83
auto str = detail::ImplGetSecureEnv(name);
84
if (str == nullptr) {
85
str = detail::ImplGetEnv(name);
86
- if (!str.empty()) {
+ if (str != nullptr && !std::string(str).empty()) {
87
LogPlatformUtilsError(std::string("!!! WARNING !!! Environment variable ") + name +
88
" is being ignored due to running with secure execution. The value '" + str +
89
"' will NOT be used.");
0 commit comments