[libgsystem] fileutils: Fix logic error caught by compiler
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsystem] fileutils: Fix logic error caught by compiler
- Date: Tue, 26 Feb 2013 17:18:56 +0000 (UTC)
commit c1736a6364a554eeeed9f411b0b220dd8758c745
Author: Colin Walters <walters verbum org>
Date: Tue Feb 26 12:16:59 2013 -0500
fileutils: Fix logic error caught by compiler
We want to actually propagate the "try again" bits...
gsystem-file-utils.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gsystem-file-utils.c b/gsystem-file-utils.c
index 07d35c1..0a5d8cc 100644
--- a/gsystem-file-utils.c
+++ b/gsystem-file-utils.c
@@ -305,7 +305,6 @@ linkcopy_internal_attempt (GFile *src,
GError **error)
{
gboolean ret = FALSE;
- gboolean ret_try_again = FALSE;
int res;
char *tmp_name = NULL;
GFile *tmp_dest = NULL;
@@ -322,7 +321,7 @@ linkcopy_internal_attempt (GFile *src,
if (errno == EEXIST)
{
/* Nothing, fall through */
- ret_try_again = TRUE;
+ *out_try_again = TRUE;
ret = TRUE;
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]