From 326aa5c04334723540afa4f7f02086b846f7de45 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 8 Sep 2001 13:22:41 +0000 Subject: (copy_internal): Add braces around now-multi-stmt if-block. This fixes a bug introduced by my 2001-08-06 change. --- src/copy.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/copy.c b/src/copy.c index 2b2a0da6d..b7f535c7b 100644 --- a/src/copy.c +++ b/src/copy.c @@ -696,11 +696,13 @@ copy_internal (const char *src_path, const char *dst_path, { overwrite_prompt (dst_path, &dst_sb); if (!yesno ()) - /* Pretend the rename succeeded, so the caller (mv) - doesn't end up removing the source file. */ - if (rename_succeeded) - *rename_succeeded = 1; - return 0; + { + /* Pretend the rename succeeded, so the caller (mv) + doesn't end up removing the source file. */ + if (rename_succeeded) + *rename_succeeded = 1; + return 0; + } } } else -- cgit v1.2.3-70-g09d2