summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2021-06-09 15:53:32 +0100
committerPhilip Withnall <pwithnall@endlessos.org>2021-06-09 15:53:32 +0100
commit165a0baa15843a1d96382ecdd75d4e632217645d (patch)
tree9f9bd36e636b06e21d6037e0fbe4303dfea7d588
parent601ef3b6be457a6b0c15ab3a341a0e51f1d02ffd (diff)
downloadglib-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.c3
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