summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-10-10 11:51:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-10-10 11:51:50 -0700
commit54d4f56ea0bb307ab76224389d33f33c19d61fae (patch)
treea35423c5a1d45197656ecf9f74e5b1239100d094
parent483ad99aca0c624a61912e7c23f711b9b7fe5c8c (diff)
downloadtxr-54d4f56ea0bb307ab76224389d33f33c19d61fae.tar.gz
txr-54d4f56ea0bb307ab76224389d33f33c19d61fae.tar.bz2
txr-54d4f56ea0bb307ab76224389d33f33c19d61fae.zip
time: Solaris fix: don't assign to env_list.
* time.c (env_list): The env_list variable is static in lib.c. The idea here was that since we modified the environment with setenv, we should invalidate the env hash which stores a cached copy of it. However, the setenv library function that is exposed to programs neglects to do this, which is a much larger issue. Let's delete the assignment to env_list and deal with the whole issue later.
-rw-r--r--time.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/time.c b/time.c
index 07d2d695..ea4b3065 100644
--- a/time.c
+++ b/time.c
@@ -377,7 +377,6 @@ static time_t timegm_hack(struct tm *tm)
tzset();
#endif
- env_list = nil;
return ret;
}
#endif