summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-03-23 04:50:21 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-03-23 04:50:21 (GMT)
commit37f5c2af038e71d1c88fe0fcb9d061b6c620dec0 (patch)
tree014531847a0b5225798ae91072804b42aaa1b1f7 /generic/tclObj.c
parent95de12dbb42d94ed5f716d91bb4500ba5ae08616 (diff)
downloadtcl-37f5c2af038e71d1c88fe0fcb9d061b6c620dec0.zip
tcl-37f5c2af038e71d1c88fe0fcb9d061b6c620dec0.tar.gz
tcl-37f5c2af038e71d1c88fe0fcb9d061b6c620dec0.tar.bz2
Make sure no path emerges to write on tclEmptyStringRep.
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 7fe0293..4f7194b 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -1765,6 +1765,7 @@ Tcl_InitStringRep(
}
} else {
objPtr->bytes = tclEmptyStringRep;
+ return NULL;
}
} else {
/* objPtr->bytes != NULL bytes == NULL - Truncate */