summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2003-02-11 18:03:22 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2003-02-11 18:03:22 (GMT)
commitae07e289b2b5cd44065d2a1d64003a56c3071977 (patch)
treea0b387eca988334fa5fb08fce0606a19d253cdc8 /generic
parentefc50f268e80406cfd5058b3a67014803a71dad2 (diff)
downloadtcl-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')
-rw-r--r--generic/tclParse.c4
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);