diff --git a/glib/gerror.c b/glib/gerror.c index 236e52869..b190d6881 100644 --- a/glib/gerror.c +++ b/glib/gerror.c @@ -126,6 +126,8 @@ * gint fd; * int saved_errno; * + * g_return_val_if_fail (error == NULL || *error == NULL, -1); + * * fd = open ("file.txt", O_RDONLY); * saved_errno = errno; *