summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-08-06 00:20:09 (GMT)
committerhobbs <hobbs>2000-08-06 00:20:09 (GMT)
commit4772e4fbbcde7aa1bd229575d4f90ff7126a7a4a (patch)
tree5b57994f80b33ef43a53b6419a3eba7415934a82 /generic/tclTest.c
parent42903a965d2665528b7e435299a359576e5ad32f (diff)
downloadtcl-4772e4fbbcde7aa1bd229575d4f90ff7126a7a4a.zip
tcl-4772e4fbbcde7aa1bd229575d4f90ff7126a7a4a.tar.gz
tcl-4772e4fbbcde7aa1bd229575d4f90ff7126a7a4a.tar.bz2
* generic/tclIOGT.c (TclChannelTransform): fixed segfault that
would occur when transforming a channel with a proc that did not yet exist. (Kupries) * generic/tclTest.c (TestChannelCmd): added some lint init'ing of statePtr and chan vars.
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 1e98921..33f6a58 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTest.c,v 1.17.2.1 2000/07/27 01:39:19 hobbs Exp $
+ * RCS: @(#) $Id: tclTest.c,v 1.17.2.2 2000/08/06 00:20:10 hobbs Exp $
*/
#define TCL_TEST
@@ -4305,6 +4305,10 @@ TestChannelCmd(clientData, interp, argc, argv)
statePtr = chanPtr->state;
chanPtr = statePtr->topChanPtr;
chan = (Tcl_Channel) chanPtr;
+ } else {
+ /* lint */
+ statePtr = NULL;
+ chan = NULL;
}
if ((cmdName[0] == 'i') && (strncmp(cmdName, "info", len) == 0)) {