summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
diff options
context:
space:
mode:
authorredman <redman>1999-07-22 02:15:44 (GMT)
committerredman <redman>1999-07-22 02:15:44 (GMT)
commit41b1b6389d0f6a7a65410e66d85f909e6f855148 (patch)
tree487a02144710fcc9e56ddb53b563220ee358c8ac /generic/tclParse.c
parent42dc6740de7cbdbcc0930226d7c35f11fc8f051d (diff)
downloadtcl-41b1b6389d0f6a7a65410e66d85f909e6f855148.zip
tcl-41b1b6389d0f6a7a65410e66d85f909e6f855148.tar.gz
tcl-41b1b6389d0f6a7a65410e66d85f909e6f855148.tar.bz2
Applied patch for info complete. [Bug: 2382]
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r--generic/tclParse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c
index e465ad7..e3204cc 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.c
@@ -14,7 +14,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.8 1999/07/02 06:41:23 welch Exp $
+ * RCS: @(#) $Id: tclParse.c,v 1.9 1999/07/22 02:15:45 redman Exp $
*/
#include "tclInt.h"
@@ -607,7 +607,8 @@ ParseTokens(src, mask, parsePtr)
if (nested.tokenPtr != nested.staticTokens) {
ckfree((char *) nested.tokenPtr);
}
- if ((src[-1] == ']') && !nested.incomplete) {
+ if ((*nested.term != 0) && (src[-1] == ']')
+ && !nested.incomplete) {
break;
}
if (src == parsePtr->end) {