mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-17 23:47:52 +02:00
timezone: Fix an uninitialized use
GTK ci rightly complains about this when ti builds GLib as a subproject with -Werror=maybe-uninitialized. subkey_dynamic_w will be freed without being initialized when the first goto is taken.
This commit is contained in:
@@ -831,6 +831,8 @@ rules_from_windows_time_zone (const gchar *identifier,
|
||||
WCHAR winsyspath[MAX_PATH];
|
||||
gunichar2 *subkey_w, *subkey_dynamic_w;
|
||||
|
||||
subkey_dynamic_w = NULL;
|
||||
|
||||
if (GetSystemDirectoryW (winsyspath, MAX_PATH) == 0)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user