1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-6262 analyze the coverity report on mariadb

uploaded 10.0, analyzed everything with the Impact=High
(and a couple of Medium)
This commit is contained in:
Sergei Golubchik
2017-05-17 15:16:24 +02:00
parent 335c4ab790
commit 7c03edf2fe
37 changed files with 96 additions and 63 deletions

View File

@ -3685,9 +3685,6 @@ bool mysql_show_binlog_events(THD* thd)
Protocol::SEND_NUM_ROWS | Protocol::SEND_EOF))
DBUG_RETURN(TRUE);
Format_description_log_event *description_event= new
Format_description_log_event(3); /* MySQL 4.0 by default */
DBUG_ASSERT(thd->lex->sql_command == SQLCOM_SHOW_BINLOG_EVENTS ||
thd->lex->sql_command == SQLCOM_SHOW_RELAYLOG_EVENTS);
@ -3713,6 +3710,9 @@ bool mysql_show_binlog_events(THD* thd)
binary_log= &(mi->rli.relay_log);
}
Format_description_log_event *description_event= new
Format_description_log_event(3); /* MySQL 4.0 by default */
if (binary_log->is_open())
{
LEX_MASTER_INFO *lex_mi= &thd->lex->mi;