From a6752eb940b154c9884c7522ef67ffc1a76770b5 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 2 Apr 2013 02:47:07 +0200 Subject: [PATCH] __time_to_tm: initialize tm_zone and tm_gmtoff --- src/time/__time_to_tm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/time/__time_to_tm.c b/src/time/__time_to_tm.c index a1ebc452..e2d782be 100644 --- a/src/time/__time_to_tm.c +++ b/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; }