summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorDaniel Black <daniel@linux.ibm.com>2018-05-21 10:42:44 +1000
committerSergey Vojtovich <svoj@mariadb.org>2019-01-17 01:13:47 +0400
commit19a7656fb12bfae7472658056f400bb81ab99c2f (patch)
tree453da737897789283f86358e566a4d846f20731e /mysys
parentdb469b6907a02b1441b16eac1d464673f48f9ef4 (diff)
downloadmariadb-git-19a7656fb12bfae7472658056f400bb81ab99c2f.tar.gz
safemalloc: warn, flush after fprintf
Corrects 94d722b6a43b86ee760f07915921cf58f9869a5d
Diffstat (limited to 'mysys')
-rw-r--r--mysys/safemalloc.c2
1 files changed, 1 insertions, 1 deletions
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