summaryrefslogtreecommitdiffstats
path: root/generic/tclIORChan.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-02-15 15:43:54 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-02-15 15:43:54 (GMT)
commit0db044ae28d427ebebd09c07b3d6212d3ee1357a (patch)
tree5b74b4315e52cdf2cb2377fe42806948a0f9b465 /generic/tclIORChan.c
parent3e2f142b59552edeaa2a6bb5e4a5d31e076ae8d7 (diff)
downloadtcl-0db044ae28d427ebebd09c07b3d6212d3ee1357a.zip
tcl-0db044ae28d427ebebd09c07b3d6212d3ee1357a.tar.gz
tcl-0db044ae28d427ebebd09c07b3d6212d3ee1357a.tar.bz2
* generic/tclIO.c: Made several routines tolerant of
* generic/tclIORChan.c: interp == NULL arguments. [Bug 1380662] * generic/tclIOUtil.c:
Diffstat (limited to 'generic/tclIORChan.c')
-rw-r--r--generic/tclIORChan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index faaaca1..514f89e 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIORChan.c,v 1.12 2005/12/13 22:43:17 kennykb Exp $
+ * RCS: @(#) $Id: tclIORChan.c,v 1.13 2006/02/15 15:43:55 dgp Exp $
*/
#include <tclInt.h>
@@ -845,6 +845,9 @@ UnmarshallErrorResult(
if (Tcl_ListObjGetElements(interp, msgObj, &lc, &lv) != TCL_OK) {
Tcl_Panic("TclChanCaughtErrorBypass: Bad syntax of caught result");
}
+ if (interp == NULL) {
+ return;
+ }
explicitResult = lc & 1; /* Odd number of values? */
numOptions = lc - explicitResult;