Skip to content

Commit

Permalink
Fix [7b31677235]: tclOO.c: initialize fakeObject.refCount
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 1, 2023
1 parent a568c3a commit 6c67bd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generic/tclOO.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ InitFoundation(
*/

fakeCls.thisPtr = &fakeObject;
fakeObject.refCount = 0; /* Do not increment an uninitialized value. */

fPtr->objectCls = TclOOAllocClass(interp,
AllocObject(interp, "object", (Namespace *)fPtr->ooNs, NULL));
Expand Down

0 comments on commit 6c67bd0

Please sign in to comment.