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:
Emmanuel Fleury 2020-11-17 20:52:44 +01:00
parent c07f8a70dc
commit 80fa64d974

View File

@ -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) */