summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-07-24 15:34:05 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-07-24 15:34:05 (GMT)
commit0a9367fbc97d46f8ce576938b3930fb4a8f451c9 (patch)
tree8e2d1f52dda7f947aea136233d754d2f262eab81 /generic
parent841ecebfa51d8efd3a77ff22cdfec76e4bd7a43b (diff)
downloadtcl-0a9367fbc97d46f8ce576938b3930fb4a8f451c9.zip
tcl-0a9367fbc97d46f8ce576938b3930fb4a8f451c9.tar.gz
tcl-0a9367fbc97d46f8ce576938b3930fb4a8f451c9.tar.bz2
simplify moveBytes selection logic
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIO.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 7e793a9..6052c43 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -8840,9 +8840,7 @@ TclCopyChannel(
moveBytes = inStatePtr->inEofChar == '\0' /* No eofChar to stop input */
&& inStatePtr->inputTranslation == TCL_TRANSLATE_LF
&& outStatePtr->outputTranslation == TCL_TRANSLATE_LF
- && ((inStatePtr->encoding == NULL
- && outStatePtr->encoding == NULL)
- || (inStatePtr->encoding == outStatePtr->encoding))
+ && inStatePtr->encoding == outStatePtr->encoding
&& !nonBlocking; /* First draft do only blocking case */
/*