diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2003-02-11 18:03:22 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2003-02-11 18:03:22 (GMT) |
commit | ae07e289b2b5cd44065d2a1d64003a56c3071977 (patch) | |
tree | a0b387eca988334fa5fb08fce0606a19d253cdc8 /generic/tclParse.c | |
parent | efc50f268e80406cfd5058b3a67014803a71dad2 (diff) | |
download | tcl-ae07e289b2b5cd44065d2a1d64003a56c3071977.zip tcl-ae07e289b2b5cd44065d2a1d64003a56c3071977.tar.gz tcl-ae07e289b2b5cd44065d2a1d64003a56c3071977.tar.bz2 |
* generic/tclParse.c
* tests/parse.test: fix for [Bug 684744], by Don Porter.
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r-- | generic/tclParse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c index 230edee..f1ffec7 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.22 2002/08/05 03:24:41 dgp Exp $ + * RCS: @(#) $Id: tclParse.c,v 1.23 2003/02/11 18:03:27 msofer Exp $ */ #include "tclInt.h" @@ -1646,7 +1646,7 @@ CommandComplete(script, numBytes) while (Tcl_ParseCommand((Tcl_Interp *) NULL, p, end - p, 0, &parse) == TCL_OK) { p = parse.commandStart + parse.commandSize; - if (*p == 0) { + if (p == end) { break; } Tcl_FreeParse(&parse); |