Commit d298e107 authored by Kristofer Pettersson's avatar Kristofer Pettersson
Browse files

Bug#37781 mysql_drop_user calls get_current_user() twice for no reason

Fixed typo and removed duplicate call to get_current_user.
parent 6033db36
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -5430,7 +5430,6 @@ bool mysql_drop_user(THD *thd, List <LEX_USER> &list)

  while ((tmp_user_name= user_list++))
  {
    user_name= get_current_user(thd, tmp_user_name);
    if (!(user_name= get_current_user(thd, tmp_user_name)))
    {
      result= TRUE;