]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix handling of turnaround times.
authorUlrich Drepper <drepper@redhat.com>
Wed, 5 Dec 2001 18:53:04 +0000 (18:53 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 5 Dec 2001 18:53:04 +0000 (18:53 +0000)
timezone/zic.c

index 8e028ebb92a34d875fe4ab0143e9639559f87f16..6fdcfcb66a84b45dac70362c6213e854626f94a4 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef lint
 #ifndef NOID
-static char    elsieid[] = "@(#)zic.c  7.102";
+static char    elsieid[] = "@(#)zic.c  7.104";
 #endif /* !defined NOID */
 #endif /* !defined lint */
 
@@ -1616,16 +1616,16 @@ const int                       zonecount;
        typecnt = 0;
        charcnt = 0;
        /*
-       ** A guess that may well be corrected later.
-       */
-       stdoff = 0;
-       /*
        ** Thanks to Earl Chew (earl@dnd.icp.nec.com.au)
        ** for noting the need to unconditionally initialize startttisstd.
        */
        startttisstd = FALSE;
        startttisgmt = FALSE;
        for (i = 0; i < zonecount; ++i) {
+               /*
+               ** A guess that may well be corrected later.
+               */
+               stdoff = 0;
                zp = &zpfirst[i];
                usestart = i > 0 && (zp - 1)->z_untiltime > min_time;
                useuntil = i < (zonecount - 1);
@@ -1645,8 +1645,7 @@ const int                 zonecount;
                        if (usestart) {
                                addtt(starttime, type);
                                usestart = FALSE;
-                       }
-                       else if (stdoff != 0)
+                       } else if (stdoff != 0)
                                addtt(min_time, type);
                } else for (year = min_year; year <= max_year; ++year) {
                        if (useuntil && year > zp->z_untilrule.r_hiyear)