Skip to content

Commit ab98e60

Browse files
committed
Fix Linux build
1 parent f3588ac commit ab98e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/platform_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static inline std::string PlatformUtilsGetSecureEnv(const char* name) {
8383
auto str = detail::ImplGetSecureEnv(name);
8484
if (str == nullptr) {
8585
str = detail::ImplGetEnv(name);
86-
if (!str.empty()) {
86+
if (str != nullptr && !std::string(str).empty()) {
8787
LogPlatformUtilsError(std::string("!!! WARNING !!! Environment variable ") + name +
8888
" is being ignored due to running with secure execution. The value '" + str +
8989
"' will NOT be used.");

0 commit comments

Comments
 (0)