diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2010-10-26 21:19:36 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2010-10-26 21:19:36 +0000 |
commit | 157c2da9c527cd9ebae03b07bdae90e474d5a403 (patch) | |
tree | b53e3923ed0fd9131d236e5c8583b302fb4d8a40 /libc/stdtime/localtime.c | |
parent | f9a33080297db49be3f1ec97f077663ebe4766a0 (diff) |
Notes
Diffstat (limited to 'libc/stdtime/localtime.c')
-rw-r--r-- | libc/stdtime/localtime.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/stdtime/localtime.c b/libc/stdtime/localtime.c index d397472dcdfdd..13c11aa928df6 100644 --- a/libc/stdtime/localtime.c +++ b/libc/stdtime/localtime.c @@ -5,7 +5,7 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)localtime.c 8.14"; +static char elsieid[] = "@(#)localtime.c 8.15"; #endif /* !defined NOID */ #endif /* !defined lint */ @@ -914,6 +914,7 @@ const int lastditch; register unsigned char * typep; register char * cp; register int load_result; + static struct ttinfo zttinfo; INITIALIZE(dstname); stdname = name; @@ -986,6 +987,7 @@ const int lastditch; /* ** Two transitions per year, from EPOCH_YEAR forward. */ + sp->ttis[0] = sp->ttis[1] = zttinfo; sp->ttis[0].tt_gmtoff = -dstoffset; sp->ttis[0].tt_isdst = 1; sp->ttis[0].tt_abbrind = stdlen + 1; @@ -1099,8 +1101,8 @@ const int lastditch; } /* ** Finally, fill in ttis. - ** ttisstd and ttisgmt need not be handled. */ + sp->ttis[0] = sp->ttis[1] = zttinfo; sp->ttis[0].tt_gmtoff = -stdoffset; sp->ttis[0].tt_isdst = FALSE; sp->ttis[0].tt_abbrind = 0; @@ -1113,6 +1115,7 @@ const int lastditch; dstlen = 0; sp->typecnt = 1; /* only standard time */ sp->timecnt = 0; + sp->ttis[0] = zttinfo; sp->ttis[0].tt_gmtoff = -stdoffset; sp->ttis[0].tt_isdst = 0; sp->ttis[0].tt_abbrind = 0; |