diff options
author | dgp <dgp@users.sourceforge.net> | 2014-06-04 03:25:44 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-06-04 03:25:44 (GMT) |
commit | 3334cf21036e825053a8faedd661a4486ce1c673 (patch) | |
tree | c5e511b571f912c8f6f46fb99c0a38ffd4240d9d /unix | |
parent | 2691f4b9a9de70f6dd4cfce89716c4225b9b4f68 (diff) | |
download | tcl-3334cf21036e825053a8faedd661a4486ce1c673.zip tcl-3334cf21036e825053a8faedd661a4486ce1c673.tar.gz tcl-3334cf21036e825053a8faedd661a4486ce1c673.tar.bz2 |
Valgrind doesn't like use of uninitialized variables.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixSock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index 47d0681..a9323c4 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -1024,7 +1024,7 @@ TcpConnect( { socklen_t optlen; int async_callback = statePtr->flags & TCP_ASYNC_PENDING; - int ret = -1, error; + int ret = -1, error = errno; int async = statePtr->flags & TCP_ASYNC_CONNECT; if (async_callback) { |