mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Fix missing initializer warning in gio/gdelayedsettingsbackend.c:delayed_backend_path_writable_changed()
gio/gdelayedsettingsbackend.c: In function ‘delayed_backend_path_writable_changed’: gio/gdelayedsettingsbackend.c:406:7: error: missing initializer for field ‘index’ of ‘CheckPrefixState’ 406 | CheckPrefixState state = { path, g_new (const gchar *, n_keys) }; | ^~~~~~~~~~~~~~~~
This commit is contained in:
parent
c07f8a70dc
commit
80fa64d974
@ -403,7 +403,7 @@ delayed_backend_path_writable_changed (GObject *target,
|
||||
|
||||
if (n_keys > 0)
|
||||
{
|
||||
CheckPrefixState state = { path, g_new (const gchar *, n_keys) };
|
||||
CheckPrefixState state = { path, g_new (const gchar *, n_keys), 0 };
|
||||
gsize i;
|
||||
|
||||
/* collect a list of possibly-affected keys (ie: matching the path) */
|
||||
|
Loading…
Reference in New Issue
Block a user