diff options
author | dgp <dgp@noemail.net> | 2006-02-15 16:04:25 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2006-02-15 16:04:25 (GMT) |
commit | 96edd513db877e291da88fd31a1ac465b08ef786 (patch) | |
tree | 996e867cdf99793046a663a9c41ebe5fc8ff061a /generic/tclIOUtil.c | |
parent | ed30c90cfaf3e07d96e71ee8ea9799be7a5cffaa (diff) | |
download | tcl-96edd513db877e291da88fd31a1ac465b08ef786.zip tcl-96edd513db877e291da88fd31a1ac465b08ef786.tar.gz tcl-96edd513db877e291da88fd31a1ac465b08ef786.tar.bz2 |
* generic/tclIO.c: Made several routines tolerant of
* generic/tclIOUtil.c: interp == NULL arguments. [Bug 1380662]
FossilOrigin-Name: edfdd8418679db6db8eec5399c44293bf0243331
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; } |