summaryrefslogtreecommitdiff
path: root/gio/glocalfileenumerator.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-07-10 18:04:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-07-10 18:04:22 -0400
commit29babb9fc8baf2327b2e0781fbf07bed76a4cbde (patch)
treea3fcef173c5ba2678e7d4e0b485e7925334a3f39 /gio/glocalfileenumerator.c
parentf8e22856c643bfccaf03db6f84738126cff374d0 (diff)
Minor cleanup
Diffstat (limited to 'gio/glocalfileenumerator.c')
-rw-r--r--gio/glocalfileenumerator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gio/glocalfileenumerator.c b/gio/glocalfileenumerator.c
index 3aa1f8884..882824a5d 100644
--- a/gio/glocalfileenumerator.c
+++ b/gio/glocalfileenumerator.c
@@ -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);
local->got_parent_info = TRUE;
}
-
+
next_file:
#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
* the file was removed between the readdir and the stat, so we
* ignore the file. */
- if (my_error->domain == G_IO_ERROR &&
- my_error->code == G_IO_ERROR_NOT_FOUND)
+ if (g_error_matches (my_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
{
g_error_free (my_error);
goto next_file;