Commit a79bf172 authored by unknown's avatar unknown

removed unneeded bzero

parent 7b2c5260
...@@ -2378,8 +2378,10 @@ mysql_execute_command(THD *thd) ...@@ -2378,8 +2378,10 @@ mysql_execute_command(THD *thd)
if (grant_option) if (grant_option)
{ {
TABLE_LIST old_list,new_list; 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]; old_list=table[0];
new_list=table->next[0]; new_list=table->next[0];
old_list.next=new_list.next=0; old_list.next=new_list.next=0;
......
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