Commit 1abdd4f9 authored by unknown's avatar unknown

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
parent 4eccd2ae
...@@ -58,7 +58,7 @@ void mysql_client_binlog_statement(THD* thd) ...@@ -58,7 +58,7 @@ void mysql_client_binlog_statement(THD* thd)
const char *error= 0; const char *error= 0;
char *buf= (char *) my_malloc(event_len, MYF(MY_WME)); char *buf= (char *) my_malloc(event_len, MYF(MY_WME));
Log_event *ev; Log_event *ev = 0;
int res; int res;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment