summaryrefslogtreecommitdiffstats
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)
commitde9c0d8432dc3afcfc1d0442c602f42983c134ca (patch)
tree8e2d1f52dda7f947aea136233d754d2f262eab81
parent8b939b74f8a4c8617410768e840ab04abbaec043 (diff)
downloadtcl-de9c0d8432dc3afcfc1d0442c602f42983c134ca.zip
tcl-de9c0d8432dc3afcfc1d0442c602f42983c134ca.tar.gz
tcl-de9c0d8432dc3afcfc1d0442c602f42983c134ca.tar.bz2
simplify moveBytes selection logic
-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 */
/*