gerror: Add a missing precondition assertion in documentation

Inspired by !673.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-02-18 13:23:13 +00:00
parent b72b4e2d24
commit 321f914071

View File

@ -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;
*