diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-02-02 13:25:45 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-02-02 13:25:45 -0500 |
| commit | 24f39222098253da4ad1a9cd8ddef5b9b0152ba1 (patch) | |
| tree | 36eede312e7dcb4a9afe49342fba996ef273549d /src/stdio/clearerr.c | |
| parent | 6aebe0dbfc24f0af73eb422b4748a9b35df5b435 (diff) | |
use UNDEFINED() instead of directly calling __undefined()
Diffstat (limited to 'src/stdio/clearerr.c')
| -rw-r--r-- | src/stdio/clearerr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/clearerr.c b/src/stdio/clearerr.c index f7d2aac1..9f13851e 100644 --- a/src/stdio/clearerr.c +++ b/src/stdio/clearerr.c @@ -7,6 +7,8 @@ void clearerr(FILE * stream) { SIGNAL_SAFE(0); + ASSERT_STREAM(stream, 0, 0); + flockfile(stream); if (stream != NULL) { stream->eof = 0; |
