diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2008-04-02 20:27:06 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2008-04-02 20:27:06 (GMT) |
commit | 432bbb340049d9fe5fb6d5bdebb62621b0e05f00 (patch) | |
tree | 019008f4066f48d5839e7a867ca59342c0bf6592 /generic | |
parent | bb3848710be633812ff9e3ac7ce86e45d4d93fb8 (diff) | |
download | tcl-432bbb340049d9fe5fb6d5bdebb62621b0e05f00.zip tcl-432bbb340049d9fe5fb6d5bdebb62621b0e05f00.tar.gz tcl-432bbb340049d9fe5fb6d5bdebb62621b0e05f00.tar.bz2 |
* generic/tclIO.c (CopyData): Applied patch for the fcopy problem
[Bug 780533], with many thanks to Alexandre Ferrieux
<ferrieux@users.sourceforge.net> for tracking it down and
providing a solution. Still have to convert his test script into
a proper test case.
FossilOrigin-Name: 89bcb90b510c9b3928dd9d69a882c44e741cd191
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclIO.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index 4caa474..8222681 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIO.c,v 1.137 2008/01/20 21:16:15 hobbs Exp $ + * RCS: @(#) $Id: tclIO.c,v 1.137.2.1 2008/04/02 20:27:08 andreas_kupries Exp $ */ #include "tclInt.h" @@ -8731,7 +8731,7 @@ CopyData( * don't starve the rest of the system. */ - if (cmdPtr) { + if (cmdPtr && (csPtr->toRead != 0)) { /* * The first time we enter this code, there won't be a channel * handler established yet, so do it here. |