commit | dae05dfca3e2031546e741801ac959a1838badc9 | [log] [tgz] |
---|---|---|
author | Dominic Hamon <dma+github@stripysock.com> | Fri Jun 04 15:25:11 2021 +0100 |
committer | Dominic Hamon <dma+github@stripysock.com> | Fri Jun 04 15:25:11 2021 +0100 |
tree | 2b0d2444d9c3521fb45b603c1e9da9d04ab42891 | |
parent | e12083213ffa93ad6ce35c15e4ab4a51a94cef8e [diff] |
another use-of-uninitialized-value
diff --git a/src/commandlineflags.cc b/src/commandlineflags.cc index 5724aaa..f10fc8a 100644 --- a/src/commandlineflags.cc +++ b/src/commandlineflags.cc
@@ -112,7 +112,7 @@ static std::string FlagToEnvVar(const char* flag) { const std::string flag_str(flag); - std::string env_var; + std::string env_var = ""; for (size_t i = 0; i != flag_str.length(); ++i) env_var += static_cast<char>(::toupper(flag_str.c_str()[i]));