diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h index 87cb35c59c3b32892c90bb79adf3eb3eda82f630..8d2c8d79d75df2d66dc95c7d901b934056c77fd2 100644 --- a/indra/llcommon/llstring.h +++ b/indra/llcommon/llstring.h @@ -1773,7 +1773,14 @@ template<class T> auto LLStringUtilBase<T>::getenv(const std::string& key, const string_type& dflt) -> string_type { auto found{getoptenv(key)}; - return found? *found : dflt; + if (found) + { + return *found; + } + else + { + return dflt; + } } template<class T>