From 75359441cdfe433c41265aaeeb5bd1f4f187ee63 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 18 Jun 2020 13:30:40 -0500 Subject: [PATCH] Fix issue in GSocketAddressEnumerator documentation We should stop iterating the enumerator the first time it returns NULL, even if error is set. Fixes #1982 --- gio/gsocketaddressenumerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gsocketaddressenumerator.c b/gio/gsocketaddressenumerator.c index ebbb5decf..fabd242e7 100644 --- a/gio/gsocketaddressenumerator.c +++ b/gio/gsocketaddressenumerator.c @@ -38,7 +38,7 @@ * g_socket_address_enumerator_next_finish() should be used where possible. * * Each #GSocketAddressEnumerator can only be enumerated once. Once - * g_socket_address_enumerator_next() has returned %NULL (and no error), further + * g_socket_address_enumerator_next() has returned %NULL, further * enumeration with that #GSocketAddressEnumerator is not possible, and it can * be unreffed. */