summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-26 21:52:35 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-26 21:52:35 (GMT)
commitdfe0bb63c25ec4b9669b67071a6540448d5a7379 (patch)
treeb8201d1d753589344d27d43995ec5c2c2faef541 /generic/tclParse.c
parent4b0ab277dc80defb3a47ad88bec8581e913881fc (diff)
downloadtcl-dfe0bb63c25ec4b9669b67071a6540448d5a7379.zip
tcl-dfe0bb63c25ec4b9669b67071a6540448d5a7379.tar.gz
tcl-dfe0bb63c25ec4b9669b67071a6540448d5a7379.tar.bz2
* generic/tclParse.c (Tcl_SubstObj): Fix for failed subst-12.3 test.
* tests/subst.test (subst-12.3-5): More tests for Bug 1036649.
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r--generic/tclParse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c
index 8b5315c..09894bc 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclParse.c,v 1.38 2004/10/06 13:50:07 dkf Exp $
+ * RCS: @(#) $Id: tclParse.c,v 1.39 2004/10/26 21:52:37 dgp Exp $
*/
#include "tclInt.h"
@@ -1840,7 +1840,7 @@ Tcl_SubstObj(interp, objPtr, flags)
Tcl_FreeParse(&nested);
p = nested.term + (nested.term < nested.end);
length = nested.end - p;
- if (length == 0) {
+ if ((length == 0) && (nested.term == nested.end)) {
/*
* If we run out of string, blame the missing
* close bracket on the last command, and do