diff options
author | kjnash <k.j.nash@usa.net> | 2022-08-31 14:28:57 (GMT) |
---|---|---|
committer | kjnash <k.j.nash@usa.net> | 2022-08-31 14:28:57 (GMT) |
commit | 19f8c3bb6b2aa8d571a7534b588ddacfb49952d3 (patch) | |
tree | 5051f34456c20c798d30e7741fae52575927fd7a /unix/tclUnixPipe.c | |
parent | d9b5be0959a8ee2b81ba519ff3d4c70b2da9a6ce (diff) | |
parent | ff1e919a1bae9ff88ab6dbc094b18cfadedfe8af (diff) | |
download | tcl-19f8c3bb6b2aa8d571a7534b588ddacfb49952d3.zip tcl-19f8c3bb6b2aa8d571a7534b588ddacfb49952d3.tar.gz tcl-19f8c3bb6b2aa8d571a7534b588ddacfb49952d3.tar.bz2 |
Merge old 8.7 674a6ad0472c7
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r-- | unix/tclUnixPipe.c | 5 |
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])))); |