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-14 12:17:06 -08:00
2014-10-21 11:22:26 -07:00
2014-11-14 16:22:48 -08:00
2013-12-03 18:42:41 -08:00
2013-12-03 18:42:41 -08:00
2014-11-06 11:16:55 -08:00
2014-11-14 11:19:22 -08:00
2014-09-11 08:45:46 -07:00
2013-02-01 14:51:19 -08:00
2014-08-22 10:23:12 -07:00
2014-11-12 21:03:26 -08:00
2014-04-10 20:44:27 -07:00
2014-02-21 16:27:21 +00:00
2014-11-06 14:14:37 -08:00
2014-06-12 13:16:36 -07:00
2014-11-12 19:31:21 -08:00
2014-11-12 21:03:26 -08:00
2014-10-23 19:10:54 -07:00
2014-01-03 14:49:37 -08:00