Change some instances of {0} to {} to pacify compilers.

This commit is contained in:
Router Gray
2019-05-24 06:17:39 -05:00
parent 55c0ba5b06
commit 58d94e9883
4 changed files with 5 additions and 5 deletions

View File

@@ -3073,7 +3073,7 @@ LLDate LLViewerFetchedTexture::getUploadTime()
{
if (mComment.find('z') != mComment.end())
{
struct tm t = {0};
struct tm t = {};
sscanf(mComment['z'].c_str(), "%4d%2d%2d%2d%2d%2d",
&t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min, &t.tm_sec);
std::string iso_date = llformat("%d-%d-%dT%d:%d:%dZ", t.tm_year, t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec);