Browse Source

HPCC-16432 Initialise members of struct tm to avoid warning

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 8 years ago
parent
commit
0aeb144ac1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      system/jlib/jtime.cpp

+ 2 - 0
system/jlib/jtime.cpp

@@ -156,6 +156,8 @@ void CDateTime::getToUtcTm(struct tm & ts) const
     ts.tm_min = utc_min;
     ts.tm_sec = utc_sec;
     ts.tm_isdst = 0;
+    ts.tm_wday = 0;
+    ts.tm_yday = 0;
 }
 
 void CDateTime::deserialize(MemoryBuffer &src)