summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-08-19 17:09:06 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-08-19 17:09:59 +0300
commite7fda5db07b686082af6f74e561600531e2486eb (patch)
tree03f34edef885396f75683379a5fa770c8b17d7d6 /client
parentdc91372de3ab4b9b849a0710b4b086619d87b6cd (diff)
downloadmariadb-git-e7fda5db07b686082af6f74e561600531e2486eb.tar.gz
MDEV-20377: Fix uninitialized memory in mysqltest
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index ad868722dfb..60a203ccedd 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -1,5 +1,5 @@
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates.
- Copyright (c) 2009, 2017, MariaDB
+ Copyright (c) 2009, 2019, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -1693,6 +1693,7 @@ void abort_not_supported_test(const char *fmt, ...)
cur_file->file_name, cur_file->lineno);
char buff[DIE_BUFF_SIZE];
+ buff[0] = '\0';
print_file_stack(buff, buff + sizeof(buff));
fprintf(stderr, "%s", buff);