aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-09-06 06:40:20 +1000
committerGravatar axel <axel@liljencrantz.se>2006-09-06 06:40:20 +1000
commit697d524687d81fc2cd16bc49f7ef0dea85da980a (patch)
tree4c2786e08a68e7fd92c9cd3b35e82f0ef312cb53 /parser.c
parent73f0d0bb488d747c7e6035338e45593a466bfde2 (diff)
Clear error buffer before creating new error message to avoid bug causing all previous errors to accumulate
darcs-hash:20060905204020-ac50b-6ecc9e4c57a6b387431cef32c734ca525f05c26c.gz
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index f898a2df..86f5227f 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;