diff --git a/gio/gfile.c b/gio/gfile.c index 3bdae74c1..68207acb6 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -3395,10 +3395,7 @@ g_file_make_directory_with_parents (GFile *file, work_file = g_object_ref (parent_file); if (!result && my_error->code == G_IO_ERROR_NOT_FOUND) - { - g_clear_error (&my_error); - list = g_list_prepend (list, parent_file); /* Transfer ownership of ref */ - } + list = g_list_prepend (list, parent_file); /* Transfer ownership of ref */ else g_object_unref (parent_file); }