From 697d524687d81fc2cd16bc49f7ef0dea85da980a Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 6 Sep 2006 06:40:20 +1000 Subject: [PATCH] Clear error buffer before creating new error message to avoid bug causing all previous errors to accumulate darcs-hash:20060905204020-ac50b-6ecc9e4c57a6b387431cef32c734ca525f05c26c.gz --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index f898a2df2..86f5227f2 100644 --- a/parser.c +++ b/parser.c @@ -753,7 +753,7 @@ void error( int ec, int p, const wchar_t *str, ... ) if( !err_buff ) err_buff = sb_halloc( global_context ); - + sb_clear( err_buff ); error_code = ec; err_pos = p;