aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/localtime.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-12-11 15:01:31 +0000
committerCorinna Vinschen <corinna@vinschen.de>2007-12-11 15:01:31 +0000
commit4b93ac1f7fc248622a13f2485c1dbc66080708b5 (patch)
treea841742d55926440ba9213a139a687613af1032b /winsup/cygwin/localtime.cc
parentfb09a73e935537413739666937c2c8d919d6878d (diff)
downloadnewlib-4b93ac1f7fc248622a13f2485c1dbc66080708b5.zip
newlib-4b93ac1f7fc248622a13f2485c1dbc66080708b5.tar.gz
newlib-4b93ac1f7fc248622a13f2485c1dbc66080708b5.tar.bz2
* localtime.cc (tzset): Call tzsetwall only if it hasn't been
called before.
Diffstat (limited to 'winsup/cygwin/localtime.cc')
-rw-r--r--winsup/cygwin/localtime.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc
index 1dab627..a2f415f 100644
--- a/winsup/cygwin/localtime.cc
+++ b/winsup/cygwin/localtime.cc
@@ -1476,7 +1476,8 @@ tzset P((void))
const char * name = getenv("TZ");
if (name == NULL) {
- tzsetwall();
+ if (!lcl_is_set)
+ tzsetwall();
return;
}