summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-28 10:39:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-28 10:39:50 (GMT)
commit947369a720dc58ad94435918a85bee712448a48e (patch)
tree130e81956048945337c1a55693832518e2897ed7 /generic/tclResult.c
parent94a0658bc2c711a2e464dfc5a7dc3fd0b233fa82 (diff)
parentf6bf85fb67eb15e637ecf7c7de4f661dc0557b43 (diff)
downloadtcl-947369a720dc58ad94435918a85bee712448a48e.zip
tcl-947369a720dc58ad94435918a85bee712448a48e.tar.gz
tcl-947369a720dc58ad94435918a85bee712448a48e.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r--generic/tclResult.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index 4b9df6c..1fb2ad0 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -841,19 +841,19 @@ SetupAppendBuffer(
totalSpace = newSpace + iPtr->appendUsed;
if (totalSpace >= iPtr->appendAvl) {
- char *newSpace;
+ char *newSpacePtr;
if (totalSpace < 100) {
totalSpace = 200;
} else {
totalSpace *= 2;
}
- newSpace = (char *)ckalloc(totalSpace);
- strcpy(newSpace, iPtr->result);
+ newSpacePtr = (char *)ckalloc(totalSpace);
+ strcpy(newSpacePtr, iPtr->result);
if (iPtr->appendResult != NULL) {
ckfree(iPtr->appendResult);
}
- iPtr->appendResult = newSpace;
+ iPtr->appendResult = newSpacePtr;
iPtr->appendAvl = totalSpace;
} else if (iPtr->result != iPtr->appendResult) {
strcpy(iPtr->appendResult, iPtr->result);