diff options
Diffstat (limited to 'src/stdio/fflush.c')
-rw-r--r-- | src/stdio/fflush.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/fflush.c b/src/stdio/fflush.c index a653e0d1..6c1e78f5 100644 --- a/src/stdio/fflush.c +++ b/src/stdio/fflush.c @@ -27,6 +27,8 @@ int fflush(FILE *stream) return 0; } + ASSERT_STREAM(stream, 0, 0); + if (!stream->write) { UNDEFINED("attempt to fflush() an input stream"); } |