summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2019-08-12 10:42:12 +0300
committerMonty <monty@mariadb.org>2019-08-12 10:48:38 +0300
commit05619f6989590727a470c23475fc987f52b56988 (patch)
tree60429bcf8bd0e08550859f4fe5ab622948f23b20 /sql/sql_acl.cc
parent13f36fffeaecf316435fc497b0f3ae2a5d58d749 (diff)
downloadmariadb-git-05619f6989590727a470c23475fc987f52b56988.tar.gz
Fixes based on warnings from gcc/clang and valgrind
- Initialize variables that could be used uninitialized - Added extra end space to DbugStringItemTypeValue to get rid of warnings from c_ptr() - Session_sysvars_tracker::update() accessed unitialized memory if called with NULL value. - get_schema_stat_record() accessed unitialized memory if HA_KEY_LONG_HASH was used - parse_vcol_defs() accessed random memory for tables without keys.
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 231f8f85b94..847d2bd777b 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -4315,7 +4315,7 @@ static int replace_user_table(THD *thd, const User_table &user_table,
bool handle_as_role= combo->is_role();
LEX *lex= thd->lex;
TABLE *table= user_table.table();
- ACL_USER new_acl_user, *old_acl_user;
+ ACL_USER new_acl_user, *old_acl_user= 0;
DBUG_ENTER("replace_user_table");
mysql_mutex_assert_owner(&acl_cache->lock);