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:
parent
cc6378b337
commit
df0878e3ce
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user