mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-16 04:28:05 +02: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)
|
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;
|
gsize i;
|
||||||
|
|
||||||
/* collect a list of possibly-affected keys (ie: matching the path) */
|
/* collect a list of possibly-affected keys (ie: matching the path) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user