Skip to content

Commit

Permalink
gkeyfilesettingsbackend: Add assertion for known-true condition
Browse files Browse the repository at this point in the history
We know the group exists since we enumerated it.  Should silence a
static analysis warning.

https://bugzilla.gnome.org/show_bug.cgi?id=733576
  • Loading branch information
cgwalters committed Jul 23, 2014
1 parent 7ea4bf3 commit 8ebd287
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gio/gkeyfilesettingsbackend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down

0 comments on commit 8ebd287

Please sign in to comment.