diff --git a/Libraries/LibC/stdio.cpp b/Libraries/LibC/stdio.cpp index 60813c0861f..e0c289d5186 100644 --- a/Libraries/LibC/stdio.cpp +++ b/Libraries/LibC/stdio.cpp @@ -115,8 +115,10 @@ int feof(FILE* stream) int fflush(FILE* stream) { - // FIXME: fflush(NULL) should flush all open output streams. - ASSERT(stream); + if (!stream) { + dbg() << "FIXME: fflush(nullptr) should flush all open streams"; + return 0; + } if (!stream->buffer_index) return 0; int rc = write(stream->fd, stream->buffer, stream->buffer_index);