mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gkeyfilesettingsbackend: Add assertion for known-true condition
We know the group exists since we enumerated it. Should silence a static analysis warning. https://bugzilla.gnome.org/show_bug.cgi?id=733576
This commit is contained in:
@@ -392,6 +392,7 @@ keyfile_to_tree (GKeyfileSettingsBackend *kfsb,
|
||||
continue;
|
||||
|
||||
keys = g_key_file_get_keys (keyfile, groups[i], NULL, NULL);
|
||||
g_assert (keys != NULL);
|
||||
|
||||
for (j = 0; keys[j]; j++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user