From 063027238852210cf34daca84dad4defd5d629c9 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 21 Oct 2021 11:10:44 +0100 Subject: [PATCH] gfileenumerator: Add missing precondition to get_child() Signed-off-by: Philip Withnall 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));