summaryrefslogtreecommitdiff
path: root/sql/rpl_gtid.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/rpl_gtid.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/rpl_gtid.cc')
-rw-r--r--sql/rpl_gtid.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_gtid.cc b/sql/rpl_gtid.cc
index 6ab216188ee..a159434f14b 100644
--- a/sql/rpl_gtid.cc
+++ b/sql/rpl_gtid.cc
@@ -874,7 +874,7 @@ rpl_slave_state::gtid_delete_pending(THD *thd,
Query_tables_list lex_backup;
TABLE_LIST tlist;
TABLE *table;
- handler::Table_flags direct_pos;
+ handler::Table_flags direct_pos= 0;
list_element *cur, **cur_ptr_ptr;
bool table_opened= false;
bool index_inited= false;