Bug 767824 - Some UTC timezones incorrectly recognized on Windows 7

The condition removed erroneously excluded UTC-based and DST-less
timezones and so left the GArray with no contents, so GTimeZone functions
returned whatever random garbage was in memory.
This commit is contained in:
John Ralls 2016-06-19 15:03:20 -07:00
parent fadd00c708
commit 35b401c8bb

View File

@ -893,7 +893,7 @@ init_zone_from_rules (GTimeZone *gtz,
++info_index;
skip_first_std_trans = TRUE;
}
else if (rules[ri].std_offset || rules[ri].dlt_offset)
else
{
const guint start_year = rules[ri].start_year;
const guint end_year = rules[ri + 1].start_year;