Index: ChangeLog =================================================================== --- ChangeLog (revision 643) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2008-06-06 Chenthill Palanisamy + + * src/libical/icaltz-util.c: (icaltzutil_fetch_timezone): If there + are no transitions take the index for types as 0. + 2008-05-06 Patrick Ohly * src/libical/icalmemory.c: mark libical versions Index: src/libical/icaltz-util.c =================================================================== --- src/libical/icaltz-util.c (revision 643) +++ src/libical/icaltz-util.c (working copy) @@ -148,7 +148,7 @@ find_transidx (time_t *transitions, ttin /* If the transition time is not found, it means the timezone does not have the dst changes */ if (!found) { - *stdidx = i -1; + *stdidx = i-1; return; } @@ -326,9 +326,9 @@ icaltzutil_fetch_timezone (const char *l icalcomponent_add_property (tz_comp, icalprop); if (stdidx != -1) { - if (stdidx != 0) + if (num_trans != 0) zidx = trans_idx [stdidx]; - else + else zidx = 0; std_comp = icalcomponent_new (ICAL_XSTANDARD_COMPONENT);