From a42a32224164868fbc17daa0c4c057b7c96048f0 Mon Sep 17 00:00:00 2001 From: "midom@flute.local" <> Date: Wed, 1 Mar 2006 12:45:13 +0200 Subject: [PATCH] fixed BINLOG crashes in case of badly formed statement (Bug #17457) --- sql/sql_binlog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_binlog.cc b/sql/sql_binlog.cc index cc0e9714d85..0939ad66cd0 100644 --- a/sql/sql_binlog.cc +++ b/sql/sql_binlog.cc @@ -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; /*