From c9cd385b170f074d357e804f8319db3695f3319f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Sun, 3 Dec 2023 13:03:22 +0000 Subject: [PATCH] hash: Explicitly annotate key in iter_next as nullable There is no reason for key and value to have different annotations. Both may return NULL as a valid value. gpointer typed parameters are nullable by convention, so there is no change here. The (nullable) annotation is just for humans really. --- glib/ghash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/ghash.c b/glib/ghash.c index 2dcdd9dfc..e8d8f1738 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -1101,7 +1101,7 @@ g_hash_table_iter_init (GHashTableIter *iter, /** * g_hash_table_iter_next: * @iter: an initialized #GHashTableIter - * @key: (out) (optional): a location to store the key + * @key: (out) (optional) (nullable): a location to store the key * @value: (out) (optional) (nullable): a location to store the value * * Advances @iter and retrieves the key and/or value that are now