From e5b2e9b132c9b0c243213b4c42eefea58726aeba Mon Sep 17 00:00:00 2001 From: "bell@sanja.is.com.ua" <> Date: Tue, 23 Mar 2004 19:24:35 +0200 Subject: [PATCH] removed unneeded bzero --- sql/sql_parse.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 73811dddf75..bfef9a01feb 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2378,8 +2378,10 @@ mysql_execute_command(THD *thd) if (grant_option) { TABLE_LIST old_list,new_list; - bzero((char*) &old_list, sizeof(old_list)); - bzero((char*) &new_list, sizeof(new_list)); // Safety + /* + we do not need initialize old_list and new_list because we will + come table[0] and table->next[0] there + */ old_list=table[0]; new_list=table->next[0]; old_list.next=new_list.next=0;