diff options
author | dgp <dgp@users.sourceforge.net> | 2013-03-19 14:31:56 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-03-19 14:31:56 (GMT) |
commit | a0b87265cec0688fcea529d4afbe6397586e704b (patch) | |
tree | 89b9bfaf7718af0cfa4826543888199b145667af /generic/tclFCmd.c | |
parent | ddc36ee47351940ce5a6909c91bcda6709e5ad70 (diff) | |
parent | d16b233ed8a81860e706a008bde82dfa568d4dcd (diff) | |
download | tcl-a0b87265cec0688fcea529d4afbe6397586e704b.zip tcl-a0b87265cec0688fcea529d4afbe6397586e704b.tar.gz tcl-a0b87265cec0688fcea529d4afbe6397586e704b.tar.bz2 |
3597000 Consistent [file copy] result.
Diffstat (limited to 'generic/tclFCmd.c')
-rw-r--r-- | generic/tclFCmd.c | 17 |
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)) { |