summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2024-05-24 20:34:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2024-05-24 20:34:04 (GMT)
commit8e98a96cb905e5eae722169271333e367ba0c9ab (patch)
treea4a2677077b37b85d7a6f95e627e8ab238c35f4b /unix/tclUnixFile.c
parent278cf13c0f627be75677c47281e56bb020ebdf5b (diff)
parente57511985899a4b10e86b28149306d5d6fd68dbf (diff)
downloadtcl-8e98a96cb905e5eae722169271333e367ba0c9ab.zip
tcl-8e98a96cb905e5eae722169271333e367ba0c9ab.tar.gz
tcl-8e98a96cb905e5eae722169271333e367ba0c9ab.tar.bz2
merge core-8-branch
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index ef2d4b9..93f6aa8 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -154,9 +154,7 @@ TclpFindExecutable(
#endif
{
Tcl_ExternalToUtfDStringEx(NULL, NULL, name, TCL_INDEX_NONE, TCL_ENCODING_PROFILE_TCL8, &utfName, NULL);
- TclSetObjNameOfExecutable(
- Tcl_NewStringObj(Tcl_DStringValue(&utfName), TCL_INDEX_NONE), NULL);
- Tcl_DStringFree(&utfName);
+ TclSetObjNameOfExecutable(Tcl_DStringToObj(&utfName), NULL);
goto done;
}
@@ -191,9 +189,7 @@ TclpFindExecutable(
Tcl_ExternalToUtfDStringEx(NULL, NULL, Tcl_DStringValue(&buffer), TCL_INDEX_NONE,
TCL_ENCODING_PROFILE_TCL8, &utfName, NULL);
- TclSetObjNameOfExecutable(
- Tcl_NewStringObj(Tcl_DStringValue(&utfName), TCL_INDEX_NONE), NULL);
- Tcl_DStringFree(&utfName);
+ TclSetObjNameOfExecutable(Tcl_DStringToObj(&utfName), NULL);
done:
Tcl_DStringFree(&buffer);