2006-04-25 Matthias Clasen <mclasen@redhat.com>
* tests/keyfile-test.c (test_comments): Add a test for
the previous change.
2006-04-25 Matthias Clasen <mclasen@redhat.com>
+ * tests/keyfile-test.c (test_comments): Add a test for
+ the previous change.
+
* glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
redundant code.
(g_key_file_get_group_comment): Don't dereference before
2006-04-25 Matthias Clasen <mclasen@redhat.com>
+ * tests/keyfile-test.c (test_comments): Add a test for
+ the previous change.
+
* glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
redundant code.
(g_key_file_get_group_comment): Don't dereference before
check_name ("group comment", comment, group_comment, 0);
g_free (comment);
+ comment = g_key_file_get_comment (keyfile, "group3", NULL, &error);
+ check_error (&error,
+ G_KEY_FILE_ERROR,
+ G_KEY_FILE_ERROR_GROUP_NOT_FOUND);
+ g_assert (comment == NULL);
+
g_key_file_free (keyfile);
}