summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 1ff36ce..3d2c4e6 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.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: tclWinChan.c,v 1.3 1998/09/14 18:40:19 stanton Exp $
+ * RCS: @(#) $Id: tclWinChan.c,v 1.4 1999/01/04 19:25:05 rjohnson Exp $
*/
#include "tclWinInt.h"
@@ -1167,6 +1167,9 @@ TclGetDefaultStdChannel(type)
}
channel = Tcl_MakeFileChannel(handle, mode);
+ if (channel == NULL) {
+ return NULL;
+ }
/*
* Set up the normal channel options for stdio handles.