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

Fixed typo and removed duplicate call to get_current_user.
This commit is contained in:
Kristofer Pettersson 2008-07-29 15:37:09 +02:00
parent 6033db3671
commit d298e107f7

View File

@ -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;