mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Minor cleanup
This commit is contained in:
@@ -327,7 +327,7 @@ g_local_file_enumerator_next_file (GFileEnumerator *enumerator,
|
|||||||
_g_local_file_info_get_parent_info (local->filename, local->matcher, &local->parent_info);
|
_g_local_file_info_get_parent_info (local->filename, local->matcher, &local->parent_info);
|
||||||
local->got_parent_info = TRUE;
|
local->got_parent_info = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
next_file:
|
next_file:
|
||||||
|
|
||||||
#ifdef USE_GDIR
|
#ifdef USE_GDIR
|
||||||
@@ -354,8 +354,7 @@ g_local_file_enumerator_next_file (GFileEnumerator *enumerator,
|
|||||||
/* If the file does not exist there might have been a race where
|
/* If the file does not exist there might have been a race where
|
||||||
* the file was removed between the readdir and the stat, so we
|
* the file was removed between the readdir and the stat, so we
|
||||||
* ignore the file. */
|
* ignore the file. */
|
||||||
if (my_error->domain == G_IO_ERROR &&
|
if (g_error_matches (my_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
|
||||||
my_error->code == G_IO_ERROR_NOT_FOUND)
|
|
||||||
{
|
{
|
||||||
g_error_free (my_error);
|
g_error_free (my_error);
|
||||||
goto next_file;
|
goto next_file;
|
||||||
|
Reference in New Issue
Block a user