summaryrefslogtreecommitdiffstats
path: root/generic/tclIOCmd.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2024-05-25 11:31:34 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2024-05-25 11:31:34 (GMT)
commit872c04a64adaa412f6b8684bb024d000d11a1650 (patch)
tree85bd4b4de6b75b87ec304abeaf5c555a46c78a3e /generic/tclIOCmd.c
parentd0f4560014d2fd2def1e2860ec52259ef80495f1 (diff)
downloadtcl-872c04a64adaa412f6b8684bb024d000d11a1650.zip
tcl-872c04a64adaa412f6b8684bb024d000d11a1650.tar.gz
tcl-872c04a64adaa412f6b8684bb024d000d11a1650.tar.bz2
Use the new operations
Diffstat (limited to 'generic/tclIOCmd.c')
-rw-r--r--generic/tclIOCmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c
index 5127b99..cdcef10 100644
--- a/generic/tclIOCmd.c
+++ b/generic/tclIOCmd.c
@@ -2005,8 +2005,7 @@ TclInitChanCmd(
* Can assume that reference counts are all incremented.
*/
- Tcl_DictObjPut(NULL, mapObj, Tcl_NewStringObj(extras[i], -1),
- Tcl_NewStringObj(extras[i+1], -1));
+ TclDictPutString(NULL, mapObj, extras[i], extras[i + 1]);
}
Tcl_SetEnsembleMappingDict(interp, ensemble, mapObj);
return ensemble;