summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-01-16 13:32:52 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-01-16 13:32:52 (GMT)
commit4609d947325493cbb0438bd03f6bc912d9f639f2 (patch)
tree26d9c659bf5fea0f28f376e007775230f1b79ed4 /library
parent8602b7fbf73af0379a1f0114c143669e73055631 (diff)
parent2462be2b3821467cc6fc2a847e3e9cf4494c831c (diff)
downloadtcl-4609d947325493cbb0438bd03f6bc912d9f639f2.zip
tcl-4609d947325493cbb0438bd03f6bc912d9f639f2.tar.gz
tcl-4609d947325493cbb0438bd03f6bc912d9f639f2.tar.bz2
Ensure that error messages are always set, even in believed-unreachable code.
Diffstat (limited to 'library')
-rw-r--r--library/http/http.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index a30c576..6f0f4ce 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -867,6 +867,7 @@ proc http::cleanup {token} {
proc http::Connect {token} {
variable $token
upvar 0 $token state
+ set err "due to unexpected EOF"
if {
[eof $state(sock)] ||
[set err [fconfigure $state(sock) -error]] ne ""