* 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>
* include/sys/cygwin.h: Include limits.h.

View File

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