Jelajahi Sumber

__time_to_tm: initialize tm_zone and tm_gmtoff

rofl0r 12 tahun lalu
induk
melakukan
a6752eb940
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/time/__time_to_tm.c

+ 2 - 0
src/time/__time_to_tm.c

@@ -76,6 +76,8 @@ struct tm *__time_to_tm(time_t t, struct tm *tm)
 	tm->tm_year= year;
 	tm->tm_wday= wday;
 	tm->tm_yday= yday;
+	tm->__tm_zone = 0;
+	tm->__tm_gmtoff = 0;
 
 	return tm;
 }