Clear error buffer before creating new error message to avoid bug causing all previous errors to accumulate

darcs-hash:20060905204020-ac50b-6ecc9e4c57a6b387431cef32c734ca525f05c26c.gz
This commit is contained in:
axel 2006-09-06 06:40:20 +10:00
parent 73f0d0bb48
commit 697d524687

View file

@ -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;