[tz] [PATCH 3/5] Omit unnecessary assignments in zic.c

Paul Eggert eggert at cs.ucla.edu
Tue Feb 23 07:05:06 UTC 2021


* zic.c (writezone): UTCNT and STDCNT must be zero here, so
omit these unnecessary assignments.
---
 zic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zic.c b/zic.c
index b91cb6c..f7155b1 100644
--- a/zic.c
+++ b/zic.c
@@ -2161,7 +2161,7 @@ writezone(const char *const name, const char *const string, char version,
 			indmap[desigidx[i]] = j;
 		}
 		if (pass == 1 && !want_bloat()) {
-		  utcnt = stdcnt = thisleapcnt = 0;
+		  thisleapcnt = 0;
 		  thistimecnt = - (locut + hicut);
 		  thistypecnt = thischarcnt = 1;
 		  thistimelim = thistimei;
-- 
2.27.0




More information about the tz mailing list