diff options
| author | dgp@users.sourceforge.net <dgp> | 2013-08-09 16:48:30 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2013-08-09 16:48:30 (GMT) |
| commit | e5361ec657de9e76ec921e49266f19ed2362a246 (patch) | |
| tree | 4e7a78d7c41a35f4d96f8bd72ecdabf1c0704a6b | |
| parent | 47146042aaa910040aaafce6f4dc10ca00fe4074 (diff) | |
| download | tcl-e5361ec657de9e76ec921e49266f19ed2362a246.zip tcl-e5361ec657de9e76ec921e49266f19ed2362a246.tar.gz tcl-e5361ec657de9e76ec921e49266f19ed2362a246.tar.bz2 | |
Revised GetCommandSource() can (and thus should) return a normal zero
refcount value.
| -rw-r--r-- | generic/tclBasic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 6542726..9755a21 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -3357,7 +3357,7 @@ CancelEvalProc( * * This function returns a Tcl_Obj with the full source string for the * command. This insures that traces get a correct NUL-terminated command - * string. The Tcl_Obj has refCount==1. + * string. *---------------------------------------------------------------------- */ @@ -3392,7 +3392,6 @@ GetCommandSource( if (objPtr == NULL) { objPtr = Tcl_NewListObj(objc, objv); } - Tcl_IncrRefCount(objPtr); return objPtr; } |
