diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-06-02 14:02:19 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-06-02 14:02:19 (GMT) |
commit | b37dff78c10adba0c58f275d277060fa4f82d18e (patch) | |
tree | 32a9f7952708358f6fb647398d48287926b1c486 /unix/tclUnixFile.c | |
parent | 103eb015c041530ef4652d4d0ec05188789b66f2 (diff) | |
parent | 73519e9804f39aa421be891947c0dc68203d0e9c (diff) | |
download | tcl-b37dff78c10adba0c58f275d277060fa4f82d18e.zip tcl-b37dff78c10adba0c58f275d277060fa4f82d18e.tar.gz tcl-b37dff78c10adba0c58f275d277060fa4f82d18e.tar.bz2 |
Merge 8.7
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r-- | unix/tclUnixFile.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index 41985ab..8606960 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -63,6 +63,7 @@ TclpFindExecutable( const char *name, *p; Tcl_StatBuf statBuf; Tcl_DString buffer, nameString, cwd, utfName; + Tcl_Obj *obj; if (argv0 == NULL) { return; @@ -138,7 +139,8 @@ TclpFindExecutable( p++; } } - TclSetObjNameOfExecutable(Tcl_NewObj(), NULL); + TclNewObj(obj); + TclSetObjNameOfExecutable(obj, NULL); goto done; /* @@ -161,7 +163,8 @@ TclpFindExecutable( } if (TclpGetCwd(NULL, &cwd) == NULL) { - TclSetObjNameOfExecutable(Tcl_NewObj(), NULL); + TclNewObj(obj); + TclSetObjNameOfExecutable(obj, NULL); goto done; } |