diff options
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r-- | unix/tclUnixChan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 5da3024..4fe0144 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixChan.c,v 1.7 1998/09/14 18:40:17 stanton Exp $ + * RCS: @(#) $Id: tclUnixChan.c,v 1.8 1999/01/04 19:25:04 rjohnson Exp $ */ #include "tclInt.h" /* Internal definitions for Tcl. */ @@ -2320,6 +2320,9 @@ TclGetDefaultStdChannel(type) } channel = Tcl_MakeFileChannel((ClientData) fd, mode); + if (channel == NULL) { + return NULL; + } /* * Set up the normal channel options for stdio handles. |