From d638f4a874b43bdeb4154f5138d42108604d855f Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Mon, 23 Jan 2006 11:01:59 +0000 Subject: * generic/tclProc.c: fixed args handling for precompiled bodies [Bug 1412695]; thanks to Uwe Traum. --- ChangeLog | 5 +++++ generic/tclProc.c | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index eabb6a4..87133a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-23 Miguel Sofer + + * generic/tclProc.c: fixed args handling for precompiled bodies + [Bug 1412695]; thanks to Uwe Traum. + 2006-01-16 Reinhard Max * generic/tclPipe.c (FileForRedirect): Prevent nameString from diff --git a/generic/tclProc.c b/generic/tclProc.c index cab0788..9308b81 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.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: tclProc.c,v 1.83 2005/12/13 22:43:18 kennykb Exp $ + * RCS: @(#) $Id: tclProc.c,v 1.84 2006/01/23 11:01:59 msofer Exp $ */ #include "tclInt.h" @@ -457,12 +457,12 @@ TclCreateProc( ckfree((char *) fieldValues); goto procError; } - if ((i == numArgs - 1) - && (localPtr->nameLength == 4) - && (localPtr->name[0] == 'a') - && (strcmp(localPtr->name, "args") == 0)) { - localPtr->flags |= VAR_IS_ARGS; - } + } + if ((i == numArgs - 1) + && (localPtr->nameLength == 4) + && (localPtr->name[0] == 'a') + && (strcmp(localPtr->name, "args") == 0)) { + localPtr->flags |= VAR_IS_ARGS; } localPtr = localPtr->nextPtr; -- cgit v0.12