diff options
| author | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-14 20:37:45 (GMT) |
|---|---|---|
| committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-14 20:37:45 (GMT) |
| commit | 6cf4a0dea38321c52fdcbe73f72f99f4f444bc75 (patch) | |
| tree | e34532e0d69204a14df75acc09ff7ca9f1ecc38d /unix/tclUnixSock.c | |
| parent | df8a3a6ea4a6ede9d9be56eacae69d8f40d624ca (diff) | |
| parent | b05b4cf94847c0a1efaf867e3048437e2261e030 (diff) | |
| download | tcl-6cf4a0dea38321c52fdcbe73f72f99f4f444bc75.zip tcl-6cf4a0dea38321c52fdcbe73f72f99f4f444bc75.tar.gz tcl-6cf4a0dea38321c52fdcbe73f72f99f4f444bc75.tar.bz2 | |
Merge core-8-branch.
Diffstat (limited to 'unix/tclUnixSock.c')
| -rw-r--r-- | unix/tclUnixSock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index 70dfc61..0be10ad 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -1033,10 +1033,10 @@ TcpGetOptionProc( if ((len == 0) || ((len > 1) && (optionName[1] == 'k') && (strncmp(optionName, "-keepalive", len) == 0))) { + int opt = 0; #if defined(SO_KEEPALIVE) - socklen_t size; + socklen_t size = sizeof(opt); #endif - int opt = 0; if (len == 0) { Tcl_DStringAppendElement(dsPtr, "-keepalive"); @@ -1053,10 +1053,10 @@ TcpGetOptionProc( if ((len == 0) || ((len > 1) && (optionName[1] == 'n') && (strncmp(optionName, "-nodelay", len) == 0))) { + int opt = 0; #if defined(SOL_TCP) && defined(TCP_NODELAY) - socklen_t size; + socklen_t size = sizeof(opt); #endif - int opt = 0; if (len == 0) { Tcl_DStringAppendElement(dsPtr, "-nodelay"); |
