4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-07 06:50:24 +08:00

* localtime.cc (tzset): Call tzsetwall only if it hasn't been

called before.
This commit is contained in:
Corinna Vinschen 2007-12-11 15:01:31 +00:00
parent fb09a73e93
commit 4b93ac1f7f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-11 Corinna Vinschen <corinna@vinschen.de>
* localtime.cc (tzset): Call tzsetwall only if it hasn't been
called before.
2007-12-07 Corinna Vinschen <corinna@vinschen.de> 2007-12-07 Corinna Vinschen <corinna@vinschen.de>
* include/sys/cygwin.h: Include limits.h. * include/sys/cygwin.h: Include limits.h.

View File

@ -1476,6 +1476,7 @@ tzset P((void))
const char * name = getenv("TZ"); const char * name = getenv("TZ");
if (name == NULL) { if (name == NULL) {
if (!lcl_is_set)
tzsetwall(); tzsetwall();
return; return;
} }