gkeyfilesettingsbackend: Add assertion for known-true condition
authorColin Walters <walters@verbum.org>
Tue, 22 Jul 2014 18:23:47 +0000 (14:23 -0400)
committerColin Walters <walters@verbum.org>
Wed, 23 Jul 2014 11:43:41 +0000 (07:43 -0400)
We know the group exists since we enumerated it.  Should silence a
static analysis warning.

https://bugzilla.gnome.org/show_bug.cgi?id=733576

gio/gkeyfilesettingsbackend.c

index 0dd802b..8eb7681 100644 (file)
@@ -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++)
         {