Commit 321f9140 authored by Philip Withnall's avatar Philip Withnall

gerror: Add a missing precondition assertion in documentation

Inspired by !673.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
parent b72b4e2d
......@@ -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;
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment