fixed BINLOG crashes in case of badly formed statement (Bug #17457)
sql/sql_binlog.cc: Initialize event pointer to nil, 'ev' is used in end: section, thus initialization blocks were skipped
This commit is contained in:
parent
4eccd2ae6d
commit
1abdd4f93a
@ -58,7 +58,7 @@ void mysql_client_binlog_statement(THD* thd)
|
||||
|
||||
const char *error= 0;
|
||||
char *buf= (char *) my_malloc(event_len, MYF(MY_WME));
|
||||
Log_event *ev;
|
||||
Log_event *ev = 0;
|
||||
int res;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user