mirror of
https://github.com/MariaDB/server.git
synced 2025-10-31 15:50:51 +03:00
Basically minor code optimizations and cleanups
This commit is contained in:
@@ -768,9 +768,9 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
if (argv[1][0])
|
||||
make_scrambled_password(crypted_pw,argv[1],(find_type(argv[0],
|
||||
&command_typelib,2)==ADMIN_OLD_PASSWORD),
|
||||
&rand_st);
|
||||
make_scrambled_password(crypted_pw,argv[1],
|
||||
(find_type(argv[0], &command_typelib, 2) ==
|
||||
ADMIN_OLD_PASSWORD), &rand_st);
|
||||
else
|
||||
crypted_pw[0]=0; /* No password */
|
||||
sprintf(buff,"set password='%s',sql_log_off=0",crypted_pw);
|
||||
|
||||
Reference in New Issue
Block a user