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)
commit19278ba90ac4993f62deec10f574d0f5e0718166 (patch)
treea4a2677077b37b85d7a6f95e627e8ab238c35f4b /unix/tclUnixFile.c
parent9b558e326b6c60b75c461c59f357a5fe2926132a (diff)
parent7a36917c207b6d97549078ee9371451a4a5272cc (diff)
downloadtcl-19278ba90ac4993f62deec10f574d0f5e0718166.zip
tcl-19278ba90ac4993f62deec10f574d0f5e0718166.tar.gz
tcl-19278ba90ac4993f62deec10f574d0f5e0718166.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);