mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
gerror: Mention that g_clear_error can be used with an "empty" GError
It is fine to do: GError *error = NULL; g_clear_error (&error); https://bugzilla.gnome.org/show_bug.cgi?id=762937
This commit is contained in:
parent
7c6141a546
commit
4569161f81
@ -663,7 +663,7 @@ g_propagate_error (GError **dest,
|
||||
* g_clear_error:
|
||||
* @err: a #GError return location
|
||||
*
|
||||
* If @err is %NULL, does nothing. If @err is non-%NULL,
|
||||
* If @err or *@err is %NULL, does nothing. Otherwise,
|
||||
* calls g_error_free() on *@err and sets *@err to %NULL.
|
||||
*/
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user