From 87e32c3f8a7f0c6fb16ad7a5fd0f2047f659bb2b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Sep 2015 05:29:02 +0200 Subject: assert shall flush all streams MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/assert.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/assert.c b/src/assert.c index 19a34f8..8e7561a 100644 --- a/src/assert.c +++ b/src/assert.c @@ -52,6 +52,7 @@ void __assert_fail(const char* expression, int errnum, const char* file, int lin tty, func, tty, tty, expression != NULL, (expression ? expression : stderror(errnum)), tty); + fflush(NULL); /* Flush all streams. */ abort(); } -- cgit v1.2.3-70-g09d2