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
commit46fa1da62d2a57834ad129a74d5468ca600d2d0c (patch)
treea35423c5a1d45197656ecf9f74e5b1239100d094
parent717d73bba4449b8436bc094c4614326b48d2b399 (diff)
downloadtxr-46fa1da62d2a57834ad129a74d5468ca600d2d0c.tar.gz
txr-46fa1da62d2a57834ad129a74d5468ca600d2d0c.tar.bz2
txr-46fa1da62d2a57834ad129a74d5468ca600d2d0c.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