diff options
-rw-r--r-- | lib/ephy-file-helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index 34b2d33e7..3f7b7d0ea 100644 --- a/lib/ephy-file-helpers.c +++ b/lib/ephy-file-helpers.c @@ -858,12 +858,12 @@ ephy_file_delete_dir_recursively (GFile *directory, GError **error) { GFileEnumerator *children = NULL; GFileInfo *info; - gboolean ret = TRUE; + gboolean ret = FALSE; children = g_file_enumerate_children (directory, "standard::name,standard::type", 0, NULL, error); - if (error) + if (children == NULL || error) goto out; info = g_file_enumerator_next_file (children, NULL, error); |