diff options
author | Derick Rethans <derick@php.net> | 2005-07-03 18:49:07 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2005-07-03 18:49:07 +0000 |
commit | 34c4ac7bac64ea8b196812c0c375f601f4e3218b (patch) | |
tree | 9edcd00311a206466db6181530e4102cba895e34 /ext/date | |
parent | b440eb4b452bf7fddfa84b13f2ddbf4e2e706581 (diff) | |
download | php-git-34c4ac7bac64ea8b196812c0c375f601f4e3218b.tar.gz |
- Fixed unintialized variable issue.
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/lib/parse_tz.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |