summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-06-04 03:25:44 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-06-04 03:25:44 (GMT)
commitda17af7ba7f217bb91eb381f5d3cc6ee1fe3d0ef (patch)
treec5e511b571f912c8f6f46fb99c0a38ffd4240d9d
parentd0764e8e62df4a0af3af708091bb6d9e26941b81 (diff)
downloadtcl-da17af7ba7f217bb91eb381f5d3cc6ee1fe3d0ef.zip
tcl-da17af7ba7f217bb91eb381f5d3cc6ee1fe3d0ef.tar.gz
tcl-da17af7ba7f217bb91eb381f5d3cc6ee1fe3d0ef.tar.bz2
Valgrind doesn't like use of uninitialized variables.
-rw-r--r--unix/tclUnixSock.c2
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) {