Commit 1abdd4f9 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

  /*