Skip to content

Commit

Permalink
Clear bread/3 error state, re issue #661
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Jan 23, 2025
1 parent 1589936 commit a4ed6e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bif_streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -6724,6 +6724,7 @@ static bool bif_bread_3(query *q)
break;

if (feof(str->fp)) {
clearerr(str->fp);
free(str->data);
str->data = NULL;
return false;
Expand Down

0 comments on commit a4ed6e3

Please sign in to comment.