summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-01 19:44:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-01 19:44:08 (GMT)
commit2f7d589ee1ecb7d5440ba1a10e60498383f0de09 (patch)
tree10ac40a74b2be25987ea6de60710cb0b9e0f07fe /generic
parentf62f05d3e4c4400263dff5825decd7da8f74bc66 (diff)
parent45e6a10fa7084aec99d8f713dea4072a288a0164 (diff)
downloadtcl-2f7d589ee1ecb7d5440ba1a10e60498383f0de09.zip
tcl-2f7d589ee1ecb7d5440ba1a10e60498383f0de09.tar.gz
tcl-2f7d589ee1ecb7d5440ba1a10e60498383f0de09.tar.bz2
Merge 8.7
Diffstat (limited to 'generic')
-rw-r--r--generic/tclOO.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c
index d9cabe6..c425a42 100644
--- a/generic/tclOO.c
+++ b/generic/tclOO.c
@@ -457,6 +457,7 @@ InitClassSystemRoots(
fPtr->objectCls = &fakeCls;
/* referenced in TclOOAllocClass to increment the refCount. */
fakeCls.thisPtr = &fakeObject;
+ fakeObject.refCount = 0; /* Do not increment an uninitialized value. */
fPtr->objectCls = TclOOAllocClass(interp,
AllocObject(interp, "object", (Namespace *)fPtr->ooNs, NULL));