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 | da17af7ba7f217bb91eb381f5d3cc6ee1fe3d0ef (patch) | |
tree | c5e511b571f912c8f6f46fb99c0a38ffd4240d9d /unix | |
parent | d0764e8e62df4a0af3af708091bb6d9e26941b81 (diff) | |
download | tcl-da17af7ba7f217bb91eb381f5d3cc6ee1fe3d0ef.zip tcl-da17af7ba7f217bb91eb381f5d3cc6ee1fe3d0ef.tar.gz tcl-da17af7ba7f217bb91eb381f5d3cc6ee1fe3d0ef.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) { |