From 24f39222098253da4ad1a9cd8ddef5b9b0152ba1 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 2 Feb 2024 13:25:45 -0500 Subject: use UNDEFINED() instead of directly calling __undefined() --- src/stdio/clearerr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stdio/clearerr.c') 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; -- cgit v1.2.1