From: Jim Meyering Date: Sat, 8 Sep 2001 13:22:41 +0000 (+0000) Subject: (copy_internal): Add braces around now-multi-stmt X-Git-Tag: TEXTUTILS-2_0_15~138 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=326aa5c04334723540afa4f7f02086b846f7de45;p=thirdparty%2Fcoreutils.git (copy_internal): Add braces around now-multi-stmt if-block. This fixes a bug introduced by my 2001-08-06 change. --- diff --git a/src/copy.c b/src/copy.c index 2b2a0da6d7..b7f535c7b1 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