[glib] Bug 767824 - Some UTC timezones incorrectly recognized on Windows 7



commit 35b401c8bb0c7bb9324e7d8ae0e5d0a63f98872c
Author: John Ralls <jralls ceridwen us>
Date:   Sun Jun 19 15:03:20 2016 -0700

    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.

 glib/gtimezone.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gtimezone.c b/glib/gtimezone.c
index b61529f..2e2369c 100644
--- a/glib/gtimezone.c
+++ b/glib/gtimezone.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]