aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorWojciech A. Koszek <wkoszek@laptop.freebsd.czest.pl>2010-01-31 16:56:40 +0000
committerWojciech A. Koszek <wkoszek@laptop.freebsd.czest.pl>2010-01-31 16:56:40 +0000
commitf087d79ed930a11c999cc4e7def50f181cabb0c7 (patch)
tree789e227c3410d86e90522bbf0aee122291473901 /jim.c
parent8dcefbef21a0f198749a3c67a4c4dd3ade2b8bff (diff)
downloadjimtcl-f087d79ed930a11c999cc4e7def50f181cabb0c7.zip
jimtcl-f087d79ed930a11c999cc4e7def50f181cabb0c7.tar.gz
jimtcl-f087d79ed930a11c999cc4e7def50f181cabb0c7.tar.bz2
If three arguments are passed to 'puts' and the second isn't -nonewline,
return JIM_ERR instead of JIM_OK.
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim.c b/jim.c
index ca575b2..b15bfa6 100644
--- a/jim.c
+++ b/jim.c
@@ -9539,7 +9539,7 @@ static int Jim_PutsCoreCommand(Jim_Interp *interp, int argc,
{
Jim_SetResultString(interp, "The second argument must "
"be -nonewline", -1);
- return JIM_OK;
+ return JIM_ERR;
} else {
nonewline = 1;
argv++;