summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-09-03 02:01:25 (GMT)
committerhobbs <hobbs>2002-09-03 02:01:25 (GMT)
commit932468bb63beb53d592b88af2b45c2287a8ad3a2 (patch)
tree71fb50fce5afddd4f89615533010b48372bc3fd6
parent895ffdfb298831e3f22128342c0205c5e3e7190e (diff)
downloadtcl-932468bb63beb53d592b88af2b45c2287a8ad3a2.zip
tcl-932468bb63beb53d592b88af2b45c2287a8ad3a2.tar.gz
tcl-932468bb63beb53d592b88af2b45c2287a8ad3a2.tar.bz2
* unix/tclUnixChan.c (Tcl_MakeTcpClientChannel): make sure to init
flags field of TcpState ptr to 0.
-rw-r--r--unix/tclUnixChan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index a7725d6..ef4ac89 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -10,7 +10,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.38 2002/07/29 16:54:41 rmax Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.39 2002/09/03 02:01:25 hobbs Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -2774,6 +2774,7 @@ Tcl_MakeTcpClientChannel(sock)
statePtr = (TcpState *) ckalloc((unsigned) sizeof(TcpState));
statePtr->fd = (int) sock;
+ statePtr->flags = 0;
statePtr->acceptProc = NULL;
statePtr->acceptProcData = (ClientData) NULL;