mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Added ferror test
This commit is contained in:
parent
964ce9d768
commit
279c153a41
1 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ ssize_t fill_buffer(uint_8 **start,uint_8 **end)
|
|||
|
||||
if (feof(in_file))
|
||||
return EOF;
|
||||
if (ferror(in_file))
|
||||
return EOF;
|
||||
if(bytes_read < CHUNK_SIZE)
|
||||
return EOF;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue