diff options
author | dgp <dgp@users.sourceforge.net> | 2014-05-06 15:23:43 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-05-06 15:23:43 (GMT) |
commit | e3ee9f9e15df60c47593c2b50c17fefef1909e1d (patch) | |
tree | 28413030d66b1bc2e04e078ac326d8d90bd0b113 /generic | |
parent | 5684837e350796f98813f2dc9cfecabb7ea2fe09 (diff) | |
download | tcl-e3ee9f9e15df60c47593c2b50c17fefef1909e1d.zip tcl-e3ee9f9e15df60c47593c2b50c17fefef1909e1d.tar.gz tcl-e3ee9f9e15df60c47593c2b50c17fefef1909e1d.tar.bz2 |
Add Panic call to better identify where iogt-2.5 goes wrong.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclIO.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index 58c7b3c..6bf28a1 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -2311,6 +2311,9 @@ static void PreserveChannelBuffer( ChannelBuffer *bufPtr) { + if (bufPtr->refCount == 0) { + Tcl_Panic("Reuse of ChannelBuffer!"); + } bufPtr->refCount++; } |