diff options
author | griffin <briang42@easystreet.net> | 2023-05-23 21:36:46 (GMT) |
---|---|---|
committer | griffin <briang42@easystreet.net> | 2023-05-23 21:36:46 (GMT) |
commit | e91f967003cb7c4aa4512e9afc4bf5199e48ba92 (patch) | |
tree | 90757e0d4dc74d64240ebf00ddaa08f36f1a4854 /generic/tclIOGT.c | |
parent | fa313109d6a46e437c1583c859b6e79e0a6dae2a (diff) | |
parent | 54a1d7e517922684d8612dea07b479a6d493e2f1 (diff) | |
download | tcl-e91f967003cb7c4aa4512e9afc4bf5199e48ba92.zip tcl-e91f967003cb7c4aa4512e9afc4bf5199e48ba92.tar.gz tcl-e91f967003cb7c4aa4512e9afc4bf5199e48ba92.tar.bz2 |
Merge trunk
Diffstat (limited to 'generic/tclIOGT.c')
-rw-r--r-- | generic/tclIOGT.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclIOGT.c b/generic/tclIOGT.c index 2381c3c..215c6c7 100644 --- a/generic/tclIOGT.c +++ b/generic/tclIOGT.c @@ -379,7 +379,11 @@ ExecuteCallback( unsigned char *resBuf; Tcl_InterpState state = NULL; int res = TCL_OK; - Tcl_Obj *command = TclDuplicatePureObj(dataPtr->command); + Tcl_Obj *command = TclDuplicatePureObj( + interp, dataPtr->command, &tclListType); + if (!command) { + return TCL_ERROR; + } Tcl_Interp *eval = dataPtr->interp; Tcl_Preserve(eval); |