mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-12 11:33:02 +01:00
timezone: Fix a compiler warning
gcc 13 complains that last_explicit_transition_time may be used uninitialized.
This commit is contained in:
committed by
Philip Withnall
parent
964ecf5ec9
commit
cbb2ca8c4a
@@ -709,7 +709,7 @@ init_zone_from_iana_info (GTimeZone *gtz,
|
|||||||
const struct tzhead *header = header_data;
|
const struct tzhead *header = header_data;
|
||||||
GTimeZone *footertz = NULL;
|
GTimeZone *footertz = NULL;
|
||||||
guint extra_time_count = 0, extra_type_count = 0;
|
guint extra_time_count = 0, extra_type_count = 0;
|
||||||
gint64 last_explicit_transition_time;
|
gint64 last_explicit_transition_time = 0;
|
||||||
|
|
||||||
g_return_if_fail (size >= sizeof (struct tzhead) &&
|
g_return_if_fail (size >= sizeof (struct tzhead) &&
|
||||||
memcmp (header, "TZif", 4) == 0);
|
memcmp (header, "TZif", 4) == 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user