diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-10-10 11:51:50 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-10-10 11:51:50 -0700 |
commit | 54d4f56ea0bb307ab76224389d33f33c19d61fae (patch) | |
tree | a35423c5a1d45197656ecf9f74e5b1239100d094 | |
parent | 483ad99aca0c624a61912e7c23f711b9b7fe5c8c (diff) | |
download | txr-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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -377,7 +377,6 @@ static time_t timegm_hack(struct tm *tm) tzset(); #endif - env_list = nil; return ret; } #endif |