projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d3ee05
)
__time_to_tm: initialize tm_zone and tm_gmtoff
author
rofl0r
<retnyg@gmx.net>
Tue, 2 Apr 2013 00:47:07 +0000
(
02:47
+0200)
committer
rofl0r
<retnyg@gmx.net>
Tue, 2 Apr 2013 02:43:53 +0000
(
04:43
+0200)
src/time/__time_to_tm.c
patch
|
blob
|
history
diff --git
a/src/time/__time_to_tm.c
b/src/time/__time_to_tm.c
index a1ebc4527eb6f1f70b1e64a039c6e573338b4c36..e2d782befb8998384662f33f7981ef02566f0c38 100644
(file)
--- 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;
}