summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-04-02 02:47:07 +0200
committerrofl0r <retnyg@gmx.net>2013-04-02 04:43:53 +0200
commita6752eb940b154c9884c7522ef67ffc1a76770b5 (patch)
tree823f972f86af932e8a91ad617f6327d2018e990e /src
parent8d3ee0575423edd203ee9e9f6b8ef1974ed5b1d9 (diff)
downloadmusl-a6752eb940b154c9884c7522ef67ffc1a76770b5.tar.gz
musl-a6752eb940b154c9884c7522ef67ffc1a76770b5.tar.bz2
musl-a6752eb940b154c9884c7522ef67ffc1a76770b5.tar.xz
musl-a6752eb940b154c9884c7522ef67ffc1a76770b5.zip
__time_to_tm: initialize tm_zone and tm_gmtoff
Diffstat (limited to 'src')
-rw-r--r--src/time/__time_to_tm.c2
1 files changed, 2 insertions, 0 deletions
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;
}