summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-07 22:01:12 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-07 22:01:12 (GMT)
commit423ed791650922250c95accd60a904bd4fac1a92 (patch)
tree4878f1e113bbbb9e7e5845e7094678da17588670
parentd8889b9e46595ff7b91a65ee6f7d085c14007cbf (diff)
downloadtcl-423ed791650922250c95accd60a904bd4fac1a92.zip
tcl-423ed791650922250c95accd60a904bd4fac1a92.tar.gz
tcl-423ed791650922250c95accd60a904bd4fac1a92.tar.bz2
* generic/tclTest.c (TestsetobjerrorcodeCmd): Simplified.
-rw-r--r--ChangeLog4
-rw-r--r--generic/tclTest.c13
2 files changed, 6 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d5b5a8..c610f41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-07 Don Porter <dgp@users.sourceforge.net>
+
+ * generic/tclTest.c (TestsetobjerrorcodeCmd): Simplified.
+
2004-10-07 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tclFileName.c:
diff --git a/generic/tclTest.c b/generic/tclTest.c
index e05d5cd..c8006d4 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTest.c,v 1.84 2004/10/01 03:10:36 dgp Exp $
+ * RCS: @(#) $Id: tclTest.c,v 1.85 2004/10/07 22:01:18 dgp Exp $
*/
#define TCL_TEST
@@ -3924,16 +3924,7 @@ TestsetobjerrorcodeCmd(dummy, interp, objc, objv)
int objc; /* Number of arguments. */
Tcl_Obj *CONST objv[]; /* The argument objects. */
{
- Tcl_Obj *listObjPtr;
-
- if (objc > 1) {
- listObjPtr = Tcl_ConcatObj(objc - 1, objv + 1);
- } else {
- listObjPtr = Tcl_NewObj();
- }
- Tcl_IncrRefCount(listObjPtr);
- Tcl_SetObjErrorCode(interp, listObjPtr);
- Tcl_DecrRefCount(listObjPtr);
+ Tcl_SetObjErrorCode(interp, Tcl_ConcatObj(objc - 1, objv + 1));
return TCL_ERROR;
}