gfileenumerator: Add missing precondition to get_child()

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #2507
This commit is contained in:
Philip Withnall 2021-10-21 11:10:44 +01:00
parent 422f744367
commit 0630272388

View File

@ -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));