[glib] Minor cleanup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Minor cleanup
- Date: Sat, 10 Jul 2010 22:05:43 +0000 (UTC)
commit 29babb9fc8baf2327b2e0781fbf07bed76a4cbde
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jul 10 18:04:22 2010 -0400
Minor cleanup
gio/glocalfileenumerator.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gio/glocalfileenumerator.c b/gio/glocalfileenumerator.c
index 3aa1f88..882824a 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]