summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstanton <stanton>1998-11-11 00:15:55 (GMT)
committerstanton <stanton>1998-11-11 00:15:55 (GMT)
commit3774776e7bc507091c0793c14cfd8fb45484e054 (patch)
tree2434dd6b56c622f0449a27ce65a462026645e803
parenta9095128af52a34f6ad1a62dc2b2f34f92ad9387 (diff)
downloadtcl-3774776e7bc507091c0793c14cfd8fb45484e054.zip
tcl-3774776e7bc507091c0793c14cfd8fb45484e054.tar.gz
tcl-3774776e7bc507091c0793c14cfd8fb45484e054.tar.bz2
fixed bug in initialization order, caught by Purify
-rw-r--r--generic/tclCompile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 46ac1d5..a35b310 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.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: tclCompile.c,v 1.1.2.4 1998/10/06 00:35:42 stanton Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.1.2.5 1998/11/11 00:15:55 stanton Exp $
*/
#include "tclInt.h"
@@ -1798,10 +1798,10 @@ TclFindCompiledLocal(name, nameBytes, create, flags, procPtr)
localPtr->nextPtr = NULL;
localPtr->nameLength = nameBytes;
localPtr->frameIndex = localVar;
+ localPtr->flags = flags;
if (name == NULL) {
localPtr->flags |= VAR_TEMPORARY;
}
- localPtr->flags = flags;
localPtr->defValuePtr = NULL;
localPtr->resolveInfo = NULL;