glib: Update from 2.48.2 to 2.50.1
[termux-packages] / packages / glib / glib-gtimezone.c.patch
index 886298d..450d0dd 100644 (file)
@@ -1,3 +1,5 @@
+Patch submitted at https://bugzilla.gnome.org/show_bug.cgi?id=771304
+
 diff -u -r ../glib-2.48.2/glib/gtimezone.c ./glib/gtimezone.c
 --- ../glib-2.48.2/glib/gtimezone.c    2016-08-17 12:07:29.000000000 -0400
 +++ ./glib/gtimezone.c 2016-09-12 16:52:41.864974630 -0400
@@ -33,8 +35,8 @@ diff -u -r ../glib-2.48.2/glib/gtimezone.c ./glib/gtimezone.c
 +    uint32_t offset, length, unused;
 +  } __attribute__((packed)) entry;
 +
++  char sys_timezone[PROP_VALUE_MAX];
 +  if (identifier == NULL) {
-+    char sys_timezone[PROP_VALUE_MAX];
 +    if (__system_property_get("persist.sys.timezone", sys_timezone) < 1) {
 +      g_warning("__system_property_get(\"persist.sys.timezone\") failed\n");
 +      return NULL;