diff --git a/src/time/__tz.c b/src/time/__tz.c index 8a1836e7178615d1ebb48d947709a48499e0bb51..81676d3b6d800e60b98c74feb0f895ed1a2c0712 100644 --- a/src/time/__tz.c +++ b/src/time/__tz.c @@ -190,7 +190,28 @@ static void do_tzset() for (s = (const char *)zi+map_size-2; *s!='\n'; s--); s++; } else { - s = 0; + const unsigned char *p; + __tzname[0] = __tzname[1] = 0; + __daylight = __timezone = dst_off = 0; + for (i=0; i<5; i++) r0[i] = r1[i] = 0; + for (p=types; p