diff --git a/sql/sql_show.cc b/sql/sql_show.cc index cdf0bc01b6a..a54b777705a 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -3581,6 +3581,7 @@ union Any_pointer { @param variable [in] Details of the variable. @param value_type [in] Variable type. @param show_type [in] Variable show type. + @param status_var [in] Status variable pointer @param charset [out] Character set of the value. @param buff [in,out] Buffer to store the value. (Needs to have enough memory diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index f04b295a953..0e24fc56529 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -4985,7 +4985,6 @@ Sys_var_rpl_filter::global_value_ptr(THD *thd, } rpl_filter= mi->rpl_filter; - tmp.length(0); mysql_mutex_lock(&LOCK_active_mi); switch (opt_id) {