summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-13 15:45:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-13 15:45:26 (GMT)
commitf70e1f98b3e5235a48e0fbea21515ed7e277e6cd (patch)
tree133785f8752974af168c2051003c99df65306c06 /unix/tclUnixPipe.c
parentfe00b6dcf66b299d9ea42fa1f9a7282c6475159c (diff)
parent3fc1392c92078e35e6a35efc90ce598c1c2fc192 (diff)
downloadtcl-f70e1f98b3e5235a48e0fbea21515ed7e277e6cd.zip
tcl-f70e1f98b3e5235a48e0fbea21515ed7e277e6cd.tar.gz
tcl-f70e1f98b3e5235a48e0fbea21515ed7e277e6cd.tar.bz2
Merge 8.6
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r--unix/tclUnixPipe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c
index 681ee64..5d02486 100644
--- a/unix/tclUnixPipe.c
+++ b/unix/tclUnixPipe.c
@@ -229,9 +229,10 @@ TclpCreateTempFile(
Tcl_Obj *
TclpTempFileName(void)
{
- Tcl_Obj *retVal, *nameObj = Tcl_NewObj();
+ Tcl_Obj *retVal, *nameObj;
int fd;
+ TclNewObj(nameObj);
Tcl_IncrRefCount(nameObj);
fd = TclUnixOpenTemporaryFile(NULL, NULL, NULL, nameObj);
if (fd == -1) {
@@ -1284,7 +1285,7 @@ Tcl_PidObjCmd(
*/
pipePtr = (PipeState *)Tcl_GetChannelInstanceData(chan);
- resultPtr = Tcl_NewObj();
+ TclNewObj(resultPtr);
for (i = 0; i < pipePtr->numPids; i++) {
Tcl_ListObjAppendElement(NULL, resultPtr,
Tcl_NewWideIntObj(PTR2INT(TclpGetPid(pipePtr->pidPtr[i]))));