[glib: 1/2] Mark g_key_file_get_comment() key parameter as nullable
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] Mark g_key_file_get_comment() key parameter as nullable
- Date: Tue, 2 Feb 2021 10:36:56 +0000 (UTC)
commit 02fbe86e07d953d078c2e71b9beb6cf3828917bf
Author: Sebastian Dröge <sebastian centricular com>
Date: Tue Feb 2 10:14:57 2021 +0200
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]