summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclUtil.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 8852a56..1e35165 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -2626,12 +2626,7 @@ Tcl_DStringResult(
Tcl_DString *dsPtr) /* Dynamic string that is to become the
* result of interp. */
{
- Tcl_SetResult(interp, dsPtr->string, TCL_VOLATILE);
-
- dsPtr->string = dsPtr->staticSpace;
- dsPtr->length = 0;
- dsPtr->spaceAvl = TCL_DSTRING_STATIC_SIZE;
- dsPtr->staticSpace[0] = '\0';
+ Tcl_SetObjResult(interp, TclDStringToObj(dsPtr));
}
/*