summaryrefslogtreecommitdiffstats
path: root/generic/tclFCmd.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2013-03-19 14:31:56 (GMT)
committerdgp@users.sourceforge.net <dgp>2013-03-19 14:31:56 (GMT)
commit5ac2694eefe6bcb9a15e074a043e93726be3a976 (patch)
tree89b9bfaf7718af0cfa4826543888199b145667af /generic/tclFCmd.c
parentb1c7159cb495e101708470b179557eb9224fbc03 (diff)
parent2cdcd37fd01f13b79c2f2165dbb49f8e4ac9b31d (diff)
downloadtcl-5ac2694eefe6bcb9a15e074a043e93726be3a976.zip
tcl-5ac2694eefe6bcb9a15e074a043e93726be3a976.tar.gz
tcl-5ac2694eefe6bcb9a15e074a043e93726be3a976.tar.bz2
3597000 Consistent [file copy] result.
Diffstat (limited to 'generic/tclFCmd.c')
-rw-r--r--generic/tclFCmd.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c
index c59fb54..93ccfd7 100644
--- a/generic/tclFCmd.c
+++ b/generic/tclFCmd.c
@@ -742,17 +742,14 @@ CopyRenameOneFile(
*/
errfile = target;
-
- /*
- * We now need to reset the result, because the above call, if it
- * failed, may have put an error message in place. (Ideally we
- * would prefer not to pass an interpreter in above, but the
- * channel IO code used by TclCrossFilesystemCopy currently
- * requires one).
- */
-
- Tcl_ResetResult(interp);
}
+ /*
+ * We now need to reset the result, because the above call,
+ * may have left set it. (Ideally we would prefer not to pass
+ * an interpreter in above, but the channel IO code used by
+ * TclCrossFilesystemCopy currently requires one)
+ */
+ Tcl_ResetResult(interp);
}
if ((copyFlag == 0) && (result == TCL_OK)) {
if (S_ISDIR(sourceStatBuf.st_mode)) {