summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel.black@au.ibm.com>2016-06-13 18:30:02 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2016-06-14 19:17:29 +0300
commitbfef17bec193d8c965604ad29d4b4b9f800bccac (patch)
tree728502b1546c2751092e39b0ff3f55d91a369280
parent0089af8e1c767ed34ff8d92428beacf50fa97e79 (diff)
downloadmariadb-git-bfef17bec193d8c965604ad29d4b4b9f800bccac.tar.gz
MDEV-9433: [PATCH} cppcheck reported a number of minor coding errors
Fix cppwarning of va_args being opened but not closed. Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
-rw-r--r--mysys/mf_iocache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index 02e5c5373ae..31a09e214d2 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -1874,6 +1874,7 @@ void die(const char* fmt, ...)
fprintf(stderr,"Error:");
vfprintf(stderr, fmt,va_args);
fprintf(stderr,", errno=%d\n", errno);
+ va_end(va_args);
exit(1);
}