aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-02 05:29:02 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-02 05:29:02 +0200
commit87e32c3f8a7f0c6fb16ad7a5fd0f2047f659bb2b (patch)
tree1c3239d05b52d187d2088c476037acdb104603ec
parentsilence obj/deps.mk rule (diff)
downloadslibc-87e32c3f8a7f0c6fb16ad7a5fd0f2047f659bb2b.tar.gz
slibc-87e32c3f8a7f0c6fb16ad7a5fd0f2047f659bb2b.tar.bz2
slibc-87e32c3f8a7f0c6fb16ad7a5fd0f2047f659bb2b.tar.xz
assert shall flush all streams
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/assert.c1
1 files changed, 1 insertions, 0 deletions
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();
}