diff options
author | dgp <dgp@users.sourceforge.net> | 2006-02-15 16:04:26 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-02-15 16:04:26 (GMT) |
commit | 8a69941cbf07e009343850ef3a370bcc7adf4f7e (patch) | |
tree | 996e867cdf99793046a663a9c41ebe5fc8ff061a /generic/tclIOUtil.c | |
parent | 2ee0284e217d46d0ed94cb877ea1fd72d5cd89ed (diff) | |
download | tcl-8a69941cbf07e009343850ef3a370bcc7adf4f7e.zip tcl-8a69941cbf07e009343850ef3a370bcc7adf4f7e.tar.gz tcl-8a69941cbf07e009343850ef3a370bcc7adf4f7e.tar.bz2 |
* generic/tclIO.c: Made several routines tolerant of
* generic/tclIOUtil.c: interp == NULL arguments. [Bug 1380662]
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r-- | generic/tclIOUtil.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index 5e0acbb..84c9161 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.77.2.25 2006/01/12 18:03:48 vasiljevic Exp $ + * RCS: @(#) $Id: tclIOUtil.c,v 1.77.2.26 2006/02/15 16:04:29 dgp Exp $ */ #include "tclInt.h" @@ -1864,7 +1864,9 @@ Tcl_PosixError(interp) msg = Tcl_ErrnoMsg(errno); id = Tcl_ErrnoId(); - Tcl_SetErrorCode(interp, "POSIX", id, msg, (char *) NULL); + if (interp) { + Tcl_SetErrorCode(interp, "POSIX", id, msg, (char *) NULL); + } return msg; } |