diff options
Diffstat (limited to 'src/stdio/feof.c')
-rw-r--r-- | src/stdio/feof.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdio/feof.c b/src/stdio/feof.c index 39d9b645..fdcb9ea9 100644 --- a/src/stdio/feof.c +++ b/src/stdio/feof.c @@ -6,7 +6,8 @@ int feof(FILE *stream) { SIGNAL_SAFE(0); - ASSERT_NONNULL(stream); + ASSERT_STREAM(stream, 0, 0); + flockfile(stream); if (stream->eof) { |