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:
Daniel Kochmański 2017-02-09 22:07:05 +00:00
commit acfde74880

View file

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