Przeglądaj źródła

HPCC-16432 Initialise members of struct tm to avoid warning

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 8 lat temu
rodzic
commit
0aeb144ac1
1 zmienionych plików z 2 dodań i 0 usunięć
  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)