Satoru Takeuchi 154e2026c8 libc: Fix mktime returns an uncorrect time in empty TZ case
The mktime API returned an uncorrect time when TZ is set as empty.
A timezone UTC/GMT+0 should be implied in the empty case. However
mktime keeps previous information about timezone. If mktime was called
with a timezone which has DST before, the "defaulttype" member of
"state" structure wouldn't be 0. Then it would be used next time,
even though UTC/GMT+0 doesn't have DST.

Added initialization of the "defaulttype" in the empty TZ case.

Change-Id: Ic480c63c548c05444134e0aefb30a7b380e3f40b
2014-11-14 18:13:07 -08:00
..
2014-11-07 16:48:27 -08:00
2014-11-07 16:48:27 -08:00
2014-11-07 16:48:27 -08:00
2014-11-07 16:48:27 -08:00
2014-11-07 16:48:27 -08:00
2014-11-14 16:22:48 -08:00
2014-11-14 16:22:48 -08:00
2014-10-29 13:42:23 -07:00
2014-11-06 14:14:37 -08:00
2014-11-11 16:44:21 -08:00
2014-11-14 16:22:48 -08:00
2014-09-13 09:42:41 -07:00
2014-11-07 16:48:27 -08:00