From 19a7656fb12bfae7472658056f400bb81ab99c2f Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 21 May 2018 10:42:44 +1000 Subject: safemalloc: warn, flush after fprintf Corrects 94d722b6a43b86ee760f07915921cf58f9869a5d --- mysys/safemalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mysys') diff --git a/mysys/safemalloc.c b/mysys/safemalloc.c index 5d19647c989..08e43d0a80a 100644 --- a/mysys/safemalloc.c +++ b/mysys/safemalloc.c @@ -282,8 +282,8 @@ static void warn(const char *format,...) va_list args; DBUG_PRINT("error", ("%s", format)); va_start(args,format); - fflush(stderr); vfprintf(stderr, format, args); + fflush(stderr); va_end(args); #ifdef HAVE_BACKTRACE -- cgit v1.2.1