1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-06-30 23:46:35 +00:00

fd-holder: Don't try to iterate NULL hash table

This commit is contained in:
Peter Eisenmann 2024-02-07 10:37:48 +01:00 committed by António Fernandes
parent cc6378b337
commit df0878e3ce

View File

@ -271,6 +271,11 @@ nautilus_fd_holders_release_for_mount (GMount *mount)
GFile *location;
GFileEnumerator *enumerator;
if (G_UNLIKELY (location_enumerator_map == NULL))
{
return;
}
g_hash_table_iter_init (&iter, location_enumerator_map);
while (g_hash_table_iter_next (&iter, (gpointer *) &location, (gpointer *) &enumerator))
{