mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gerror: Add a missing precondition assertion in documentation
Inspired by !673. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -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;
|
||||
*
|
||||
|
Reference in New Issue
Block a user