summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.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/tclIOUtil.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/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index c60cd8e..35cd59f 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -17,7 +17,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOUtil.c,v 1.127 2005/12/15 04:08:33 das Exp $
+ * RCS: @(#) $Id: tclIOUtil.c,v 1.128 2006/02/15 15:43:55 dgp Exp $
*/
#include "tclInt.h"
@@ -1906,7 +1906,9 @@ Tcl_PosixError(
msg = Tcl_ErrnoMsg(errno);
id = Tcl_ErrnoId();
- Tcl_SetErrorCode(interp, "POSIX", id, msg, NULL);
+ if (interp) {
+ Tcl_SetErrorCode(interp, "POSIX", id, msg, NULL);
+ }
return msg;
}