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)
commitbad1c92be68d55a66d905a8dc2478022535682f9 (patch)
tree26d9c659bf5fea0f28f376e007775230f1b79ed4 /library
parent7af0b5a02b894a6f609aa9ab5bbbb1124754b610 (diff)
parentd18fb9089e240310aa9bbf393a7feec2718aa6f3 (diff)
downloadtcl-bad1c92be68d55a66d905a8dc2478022535682f9.zip
tcl-bad1c92be68d55a66d905a8dc2478022535682f9.tar.gz
tcl-bad1c92be68d55a66d905a8dc2478022535682f9.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 ""