diff --git a/lib/libc/time/zic.c b/lib/libc/time/zic.c index 736960b7959f..28bd892112a4 100644 --- a/lib/libc/time/zic.c +++ b/lib/libc/time/zic.c @@ -1,4 +1,4 @@ -/* $NetBSD: zic.c,v 1.47 2014/08/15 11:04:07 christos Exp $ */ +/* $NetBSD: zic.c,v 1.48 2014/08/16 10:38:43 christos Exp $ */ /* ** This file is in the public domain, so clarified as of ** 2006-07-17 by Arthur David Olson. @@ -10,7 +10,7 @@ #include #ifndef lint -__RCSID("$NetBSD: zic.c,v 1.47 2014/08/15 11:04:07 christos Exp $"); +__RCSID("$NetBSD: zic.c,v 1.48 2014/08/16 10:38:43 christos Exp $"); #endif /* !defined lint */ #include "version.h" @@ -2318,6 +2318,7 @@ outzone(const struct zone *const zpfirst, const int zonecount) zic_t offset; INITIALIZE(ktime); + ktime = 0; /* XXX: gcc */ if (useuntil) { /* ** Turn untiltime into UT @@ -2331,7 +2332,8 @@ outzone(const struct zone *const zpfirst, const int zonecount) if (!zp->z_untilrule.r_todisstd) untiltime = tadd(untiltime, -stdoff); - } + } else + untiltime = 0; /* XXX: gcc */ /* ** Find the rule (of those to do, if any) ** that takes effect earliest in the year.