Skip to content

Commit

Permalink
Merge the workaround for Tcl_NewObjectInstance() changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgp committed Sep 5, 2024
2 parents 1e840c3 + a67fa65 commit de97df1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generic/itclClass.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ CallNewObjectInstance(

*oPtr = NULL;
if (infoPtr->clazzClassPtr) {
*oPtr = Tcl_NewObjectInstance(interp, infoPtr->clazzClassPtr,
path, path, 0, NULL, 0);
*oPtr = Tcl_NewObjectInstance(interp, infoPtr->clazzClassPtr, path,
Tcl_FindNamespace(interp, path, NULL, 0) ? NULL : path,
0, NULL, 0);
}
if (*oPtr == NULL) {
Tcl_AppendResult(interp,
Expand Down

0 comments on commit de97df1

Please sign in to comment.