Explorar o código

HPCC-16432 Initialise members of struct tm to avoid warning

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday %!s(int64=8) %!d(string=hai) anos
pai
achega
0aeb144ac1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)