[glib: 1/4] gfileenumerator: Add missing precondition to get_child()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/4] gfileenumerator: Add missing precondition to get_child()
- Date: Thu, 21 Oct 2021 11:58:33 +0000 (UTC)
commit 063027238852210cf34daca84dad4defd5d629c9
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Oct 21 11:10:44 2021 +0100
gfileenumerator: Add missing precondition to get_child()
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #2507
gio/gfileenumerator.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gio/gfileenumerator.c b/gio/gfileenumerator.c
index 1f9bc24eb..3c10702a7 100644
--- a/gio/gfileenumerator.c
+++ b/gio/gfileenumerator.c
@@ -734,6 +734,7 @@ g_file_enumerator_get_child (GFileEnumerator *enumerator,
GFileInfo *info)
{
g_return_val_if_fail (G_IS_FILE_ENUMERATOR (enumerator), NULL);
+ g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
return g_file_get_child (enumerator->priv->container,
g_file_info_get_name (info));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]