]> granicus.if.org Git - php/commitdiff
- Fixed unintialized variable issue.
authorDerick Rethans <derick@php.net>
Sun, 3 Jul 2005 18:49:07 +0000 (18:49 +0000)
committerDerick Rethans <derick@php.net>
Sun, 3 Jul 2005 18:49:07 +0000 (18:49 +0000)
ext/date/lib/parse_tz.c

index fa06fa21e6635a0f865bc71ad4160c392bb1d817..02e4e346893d536de2ceb2c709d1f58bbe2d4cec 100644 (file)
@@ -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;