summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-01-16 13:32:07 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-01-16 13:32:07 (GMT)
commit2462be2b3821467cc6fc2a847e3e9cf4494c831c (patch)
tree8ff016bfe45fa2c2048cd6eeb03f209beafaa738 /library
parentb662395ed59f105a932668feaada9932d46e2fe5 (diff)
parente52db8b73a4c2395936d72d215e3941b588ce265 (diff)
downloadtcl-2462be2b3821467cc6fc2a847e3e9cf4494c831c.zip
tcl-2462be2b3821467cc6fc2a847e3e9cf4494c831c.tar.gz
tcl-2462be2b3821467cc6fc2a847e3e9cf4494c831c.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 1a82c2e..e7224a2 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -863,6 +863,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 ""