summaryrefslogtreecommitdiffstats
path: root/generic/tclIOCmd.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-05-08 03:13:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-05-08 03:13:01 (GMT)
commit22c5cd91eb167259c74879d0ada569012dcecc30 (patch)
tree4ea14c9afded968db298090885f66be13ab1c5be /generic/tclIOCmd.c
parente29e8eee24f3d89cc4ad8db75e14d9a6fc77b026 (diff)
parent75e37a235a36345c619f547889a0e4663e53d599 (diff)
downloadtcl-22c5cd91eb167259c74879d0ada569012dcecc30.zip
tcl-22c5cd91eb167259c74879d0ada569012dcecc30.tar.gz
tcl-22c5cd91eb167259c74879d0ada569012dcecc30.tar.bz2
Merge 8.5.
Diffstat (limited to 'generic/tclIOCmd.c')
-rw-r--r--generic/tclIOCmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c
index 14910d7..084cefb 100644
--- a/generic/tclIOCmd.c
+++ b/generic/tclIOCmd.c
@@ -349,7 +349,8 @@ Tcl_GetsObjCmd(
if (objc == 3) {
if (Tcl_ObjSetVar2(interp, objv[2], NULL, linePtr,
TCL_LEAVE_ERR_MSG) == NULL) {
- return TCL_ERROR;
+ code = TCL_ERROR;
+ goto done;
}
Tcl_SetObjResult(interp, Tcl_NewIntObj(lineLen));
} else {