summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/setenv_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/setenv_r.c')
-rw-r--r--newlib/libc/stdlib/setenv_r.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/newlib/libc/stdlib/setenv_r.c b/newlib/libc/stdlib/setenv_r.c
index f9ff2c1cd..c32c6aca9 100644
--- a/newlib/libc/stdlib/setenv_r.c
+++ b/newlib/libc/stdlib/setenv_r.c
@@ -79,9 +79,6 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite),
{ /* old larger; copy over */
while ((*C++ = *value++) != 0);
ENV_UNLOCK;
- /* if we are changing the TZ environment variable, update timezone info */
- if (strcmp (name, "TZ") == 0)
- tzset ();
return 0;
}
}
@@ -128,10 +125,6 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite),
ENV_UNLOCK;
- /* if we are setting the TZ environment variable, update timezone info */
- if (strncmp ((*p_environ)[offset], "TZ=", 3) == 0)
- tzset ();
-
return 0;
}