mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-15 09:20:23 -07:00
Merge branch 'patch-1' into 'develop'
In `flisten` check that the stream is not in an error state, as well as not eof See merge request !51
This commit is contained in:
commit
acfde74880
1 changed files with 1 additions and 1 deletions
|
|
@ -5314,7 +5314,7 @@ static int
|
|||
flisten(cl_object stream, FILE *fp)
|
||||
{
|
||||
int aux;
|
||||
if (feof(fp))
|
||||
if (feof(fp) || ferror(fp))
|
||||
return ECL_LISTEN_EOF;
|
||||
#ifdef FILE_CNT
|
||||
if (FILE_CNT(fp) > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue