From 1dfdb750732b8d26fbe74f663728c7374576cedf Mon Sep 17 00:00:00 2001 From: Phil Clayton Date: Tue, 17 Mar 2020 00:22:36 +0000 Subject: [PATCH] ginetaddress, ginetsocketaddress: Add missing (nullable) annotations In both modules, new_from_string() may return NULL. --- gio/ginetaddress.c | 4 ++-- gio/ginetsocketaddress.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c index 787c757da..808fc3930 100644 --- a/gio/ginetaddress.c +++ b/gio/ginetaddress.c @@ -382,8 +382,8 @@ g_inet_address_init (GInetAddress *address) * * Parses @string as an IP address and creates a new #GInetAddress. * - * Returns: a new #GInetAddress corresponding to @string, or %NULL if - * @string could not be parsed. + * Returns: (nullable) (transfer full): a new #GInetAddress corresponding + * to @string, or %NULL if @string could not be parsed. * Free the returned object with g_object_unref(). * * Since: 2.22 diff --git a/gio/ginetsocketaddress.c b/gio/ginetsocketaddress.c index 81a527f6d..d7c813451 100644 --- a/gio/ginetsocketaddress.c +++ b/gio/ginetsocketaddress.c @@ -398,8 +398,8 @@ g_inet_socket_address_new (GInetAddress *address, * If @address is an IPv6 address, it can also contain a scope ID * (separated from the address by a `%`). * - * Returns: a new #GInetSocketAddress, or %NULL if @address cannot be - * parsed. + * Returns: (nullable) (transfer full): a new #GInetSocketAddress, + * or %NULL if @address cannot be parsed. * * Since: 2.40 */