diff --git a/src/time/Parser.cxx b/src/time/Parser.cxx index b09bba14f..369408efb 100644 --- a/src/time/Parser.cxx +++ b/src/time/Parser.cxx @@ -65,7 +65,7 @@ ParseTimePoint(const char *s, const char *format) (void)format; throw std::runtime_error("Time parsing not implemented on Windows"); #else - struct tm tm; + struct tm tm{}; const char *end = strptime(s, format, &tm); if (end == nullptr || *end != 0) throw std::runtime_error("Failed to parse time stamp");