diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2008-05-30 22:54:27 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2008-05-30 22:54:27 (GMT) |
| commit | 22bf09191bc60cfe9aa44235b93ac4261999b12b (patch) | |
| tree | 2a8d0623da1a0cb105d6dfe0dce52b53e459b641 /generic/tclCmdAH.c | |
| parent | e38821cf0c1d0bf7dbd25f19f71fb24eea9d87d6 (diff) | |
| download | tcl-22bf09191bc60cfe9aa44235b93ac4261999b12b.zip tcl-22bf09191bc60cfe9aa44235b93ac4261999b12b.tar.gz tcl-22bf09191bc60cfe9aa44235b93ac4261999b12b.tar.bz2 | |
Small clarifications that code a bit nicer to read.
Diffstat (limited to 'generic/tclCmdAH.c')
| -rw-r--r-- | generic/tclCmdAH.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 1ac8764..d6127b0 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdAH.c,v 1.94 2008/04/27 22:21:29 dkf Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.95 2008/05/30 22:54:27 dkf Exp $ */ #include "tclInt.h" @@ -273,6 +273,7 @@ Tcl_CatchObjCmd( } if (objc == 4) { Tcl_Obj *options = Tcl_GetReturnOptions(interp, result); + if (NULL == Tcl_ObjSetVar2(interp, optionVarNamePtr, NULL, options, 0)) { Tcl_ResetResult(interp); @@ -769,6 +770,7 @@ Tcl_ExprObjCmd( result = Tcl_ExprObj(interp, objv[1], &resultPtr); } else { Tcl_Obj *objPtr = Tcl_ConcatObj(objc-1, objv+1); + Tcl_IncrRefCount(objPtr); result = Tcl_ExprObj(interp, objPtr, &resultPtr); Tcl_DecrRefCount(objPtr); |
