From 932468bb63beb53d592b88af2b45c2287a8ad3a2 Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 3 Sep 2002 02:01:25 +0000 Subject: * unix/tclUnixChan.c (Tcl_MakeTcpClientChannel): make sure to init flags field of TcpState ptr to 0. --- unix/tclUnixChan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v0.12