From 1abdd4f93aabdbee970410a1792d74cf1af29a27 Mon Sep 17 00:00:00 2001 From: unknown 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: Initialize event pointer to nil, 'ev' is used in end: section, thus initialization blocks were skipped --- 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; /*