diff options
author | hobbs <hobbs@noemail.net> | 2002-09-03 02:01:24 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2002-09-03 02:01:24 (GMT) |
commit | 8f1b1fac2d0aea33c9ebd7794bf542aec26798f4 (patch) | |
tree | 71fb50fce5afddd4f89615533010b48372bc3fd6 /unix/tclUnixChan.c | |
parent | a00f927a2a396d3e43cd3d5543cf2c479b98b067 (diff) | |
download | tcl-8f1b1fac2d0aea33c9ebd7794bf542aec26798f4.zip tcl-8f1b1fac2d0aea33c9ebd7794bf542aec26798f4.tar.gz tcl-8f1b1fac2d0aea33c9ebd7794bf542aec26798f4.tar.bz2 |
* unix/tclUnixChan.c (Tcl_MakeTcpClientChannel): make sure to init
flags field of TcpState ptr to 0.
FossilOrigin-Name: c92bd9a23da39b1ab3495ef26f43c1afc23c2043
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r-- | unix/tclUnixChan.c | 3 |
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; |