Andrew Morrow: The attached patch updates the initialization of the 'struct tm' in
__time_get_storage<char> to match the initialization behavior in
__time_get_storage<wchar>. Without the initialization, valgrind
reports errors in the subsequent calls to strftime_l.

llvm-svn: 161196
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 0cbea7fa904d457f2cb2799904f0a190fe12fe82
diff --git a/src/locale.cpp b/src/locale.cpp
index 854fd23..542c0d7 100644
--- a/src/locale.cpp
+++ b/src/locale.cpp
@@ -4864,7 +4864,7 @@
 void
 __time_get_storage<char>::init(const ctype<char>& ct)
 {
-    tm t;
+    tm t = {0};
     char buf[100];
     // __weeks_
     for (int i = 0; i < 7; ++i)