Default construct std::array()

This commit is contained in:
Alexander Karatarakis 2018-04-07 02:07:40 -07:00
parent 7a19c72ca9
commit fcdf4637ed

View File

@ -117,9 +117,7 @@ namespace vcpkg::Chrono
std::string CTime::to_string() const
{
std::array<char, 80> date;
date.fill(0);
std::array<char, 80> date{};
strftime(&date[0], date.size(), "%Y-%m-%dT%H:%M:%S.0Z", &m_tm);
return &date[0];
}