1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-07 01:22:30 +00:00

timecnt initialization move

SCCS-file: localtime.c
SCCS-SID: 8.5
This commit is contained in:
Arthur David Olson
2006-07-31 13:25:32 -04:00
committed by Paul Eggert
parent d9858f33a2
commit 6db89ac650

View File

@@ -916,7 +916,6 @@ const int lastditch;
load_result = tzload(TZDEFRULES, sp, FALSE);
if (load_result != 0)
sp->leapcnt = 0; /* so, we're off a little */
sp->timecnt = 0;
if (*name != '\0') {
if (*name == '<') {
dstname = ++name;
@@ -967,6 +966,7 @@ const int lastditch;
atp = sp->ats;
typep = sp->types;
janfirst = 0;
sp->timecnt = 0;
for (year = EPOCH_YEAR;
sp->timecnt + 2 <= TZ_MAX_TIMES;
++year) {