summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-10-12 16:58:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-10-12 16:58:20 (GMT)
commitaec96db0167170b47c7f0dd132fd530354aa4ac7 (patch)
tree6dafdae1b5c059988993ad0f0241248ae40db41d /generic/tclUtil.c
parente97fab49d3893f5cc7879b765cc345bf32349096 (diff)
downloadtcl-aec96db0167170b47c7f0dd132fd530354aa4ac7.zip
tcl-aec96db0167170b47c7f0dd132fd530354aa4ac7.tar.gz
tcl-aec96db0167170b47c7f0dd132fd530354aa4ac7.tar.bz2
Reduce direct use of the tclEmptyStringRep.
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index b2749c3..c726174 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -1383,9 +1383,9 @@ TclConvertElement(
*/
if ((src == NULL) || (length == 0) || (*src == '\0' && length == -1)) {
- src = tclEmptyStringRep;
- length = 0;
- conversion = CONVERT_BRACE;
+ p[0] = '{';
+ p[1] = '}';
+ return 2;
}
/*