mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
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:
parent
73f0d0bb48
commit
697d524687
1 changed files with 1 additions and 1 deletions
2
parser.c
2
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;
|
||||
|
|
Loading…
Reference in a new issue