From 34c4ac7bac64ea8b196812c0c375f601f4e3218b Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 3 Jul 2005 18:49:07 +0000 Subject: [PATCH] - Fixed unintialized variable issue. --- ext/date/lib/parse_tz.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index fa06fa21e6..02e4e34689 100644 --- a/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c @@ -239,6 +239,7 @@ static ttinfo* fetch_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib uint32_t i; if (!tz->timecnt || !tz->trans) { + *transition_time = 0; if (tz->typecnt == 1) { return &(tz->type[0]); } @@ -301,6 +302,7 @@ timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo * tmp->is_dst = to->isdst; tmp->transistion_time = transistion_time; } else { + offset = 0; abbr = tz->timezone_abbr; tmp->is_dst = 0; tmp->transistion_time = 0; -- 2.40.0