diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-30 22:54:27 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-30 22:54:27 (GMT) |
commit | 032cdb06a8056b84ec16eaace0fc84044c95899a (patch) | |
tree | 2a8d0623da1a0cb105d6dfe0dce52b53e459b641 /generic/tclCmdAH.c | |
parent | c95dff3c4e222c9da6666a3b97ca0d7e92d89c10 (diff) | |
download | tcl-032cdb06a8056b84ec16eaace0fc84044c95899a.zip tcl-032cdb06a8056b84ec16eaace0fc84044c95899a.tar.gz tcl-032cdb06a8056b84ec16eaace0fc84044c95899a.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); |