diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2021-06-09 15:53:32 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2021-06-09 15:53:32 +0100 |
commit | 165a0baa15843a1d96382ecdd75d4e632217645d (patch) | |
tree | 9f9bd36e636b06e21d6037e0fbe4303dfea7d588 | |
parent | 601ef3b6be457a6b0c15ab3a341a0e51f1d02ffd (diff) | |
download | glib-165a0baa15843a1d96382ecdd75d4e632217645d.tar.gz |
gunixmounts: Document NULL return value for g_unix_mount_for()
It will return `NULL` if the path doesn’t exist.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
-rw-r--r-- | gio/gunixmounts.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 819a44bed..3df3241ac 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -1636,6 +1636,9 @@ g_unix_mount_at (const char *mount_path, * If more mounts have the same mount path, the last matching mount * is returned. * + * This will return %NULL if looking up the mount entry fails, if + * @file_path doesn’t exist or there is an I/O error. + * * Returns: (transfer full) (nullable): a #GUnixMountEntry. * * Since: 2.52 |