helpers: Braced initialization.

This commit is contained in:
tastytea 2021-08-23 19:31:14 +02:00
parent 0977bc557d
commit 8331b4211b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace helpers
std::string get_env(std::string_view name)
{
const char *env = std::getenv(name.data()); // NOLINT(concurrency-mt-unsafe)
const char *env{std::getenv(name.data())}; // NOLINT(concurrency-mt-unsafe)
if (env != nullptr)
{
return env;