diff options
author | jenglish <jenglish@flightlab.com> | 2002-06-21 21:17:39 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2002-06-21 21:17:39 (GMT) |
commit | 61158455202c06406d3c69e6d69acb490856f7ac (patch) | |
tree | d8313af4788089198ad303a238fb21e114d78d18 /generic/tclCompExpr.c | |
parent | d4eb3712e574a36917bc1a5cc3173af9fec10f8a (diff) | |
download | tcl-61158455202c06406d3c69e6d69acb490856f7ac.zip tcl-61158455202c06406d3c69e6d69acb490856f7ac.tar.gz tcl-61158455202c06406d3c69e6d69acb490856f7ac.tar.bz2 |
LogSyntaxError() should reset the interpreter result
[Bug 550142 "Tcl_ExprObj -> abort"]
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r-- | generic/tclCompExpr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c index b21477a..5e8567f 100644 --- a/generic/tclCompExpr.c +++ b/generic/tclCompExpr.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCompExpr.c,v 1.9 2002/05/30 15:03:56 msofer Exp $ + * RCS: @(#) $Id: tclCompExpr.c,v 1.10 2002/06/21 21:17:39 jenglish Exp $ */ #include "tclInt.h" @@ -968,6 +968,7 @@ LogSyntaxError(infoPtr) sprintf(buffer, "syntax error in expression \"%.*s\"", ((numBytes > 60)? 60 : numBytes), infoPtr->expr); + Tcl_ResetResult(infoPtr->interp); Tcl_AppendStringsToObj(Tcl_GetObjResult(infoPtr->interp), buffer, (char *) NULL); } |