mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gfileenumerator: Add missing precondition to get_child()
Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2507
This commit is contained in:
parent
422f744367
commit
0630272388
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user