mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Minor new sanity test in reader
darcs-hash:20071006105453-75c98-3f5d1a0a175a7b810f68b38dec472bb697081742.gz
This commit is contained in:
parent
fcd474afe8
commit
9b74687384
1 changed files with 5 additions and 0 deletions
5
reader.c
5
reader.c
|
@ -1530,10 +1530,15 @@ void reader_sanity_check()
|
|||
{
|
||||
if( is_interactive)
|
||||
{
|
||||
if( !data )
|
||||
sanity_lose();
|
||||
|
||||
if(!( data->buff_pos <= data->buff_len ))
|
||||
sanity_lose();
|
||||
|
||||
if(!( data->buff_len == wcslen( data->buff ) ))
|
||||
sanity_lose();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue