[tz] [PATCH] Clarify GCC pacification in previous fix
Paul Eggert
eggert at cs.ucla.edu
Sat Feb 13 18:00:30 UTC 2021
* zic.c (outzone): Make it clear that prevktime is
initialized only to pacify GCC.
---
zic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/zic.c b/zic.c
index a864bc4..b37cdc9 100644
--- a/zic.c
+++ b/zic.c
@@ -2715,7 +2715,8 @@ outzone(const struct zone *zpfirst, ptrdiff_t zonecount)
for (i = 0; i < zonecount; ++i) {
struct rule *prevrp = NULL;
- zic_t prevktime = min_time;
+ zic_t prevktime;
+ INITIALIZE(prevktime);
/*
** A guess that may well be corrected later.
*/
--
2.27.0
More information about the tz
mailing list