[glib: 1/3] gunixmounts: Document NULL return value for g_unix_mount_for()
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/3] gunixmounts: Document NULL return value for g_unix_mount_for()
- Date: Tue, 15 Jun 2021 15:29:59 +0000 (UTC)
commit 165a0baa15843a1d96382ecdd75d4e632217645d
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Jun 9 15:53:32 2021 +0100
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>
gio/gunixmounts.c | 3 +++
1 file changed, 3 insertions(+)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]