diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-12-11 15:01:31 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-12-11 15:01:31 +0000 |
commit | 4b93ac1f7fc248622a13f2485c1dbc66080708b5 (patch) | |
tree | a841742d55926440ba9213a139a687613af1032b /winsup/cygwin/localtime.cc | |
parent | fb09a73e935537413739666937c2c8d919d6878d (diff) | |
download | newlib-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.cc | 3 |
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; } |