From 02fbe86e07d953d078c2e71b9beb6cf3828917bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 2 Feb 2021 10:14:57 +0200 Subject: [PATCH] Mark g_key_file_get_comment() key parameter as nullable It will return the comment above the group (or at the top of the file) then according to the documentation. --- glib/gkeyfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c index cb442e98e..50859164b 100644 --- a/glib/gkeyfile.c +++ b/glib/gkeyfile.c @@ -3648,7 +3648,7 @@ g_key_file_get_top_comment (GKeyFile *key_file, * g_key_file_get_comment: * @key_file: a #GKeyFile * @group_name: (nullable): a group name, or %NULL - * @key: a key + * @key: (nullable): a key * @error: return location for a #GError * * Retrieves a comment above @key from @group_name.