1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix warnings

This commit is contained in:
Vladislav Vaintroub
2017-11-27 14:43:24 +00:00
parent 1029b22feb
commit 1c4968f2f3
4 changed files with 8 additions and 9 deletions

View File

@ -7367,9 +7367,8 @@ static bool grant_load(THD *thd,
continue;
}
}
uint type= procs_priv.routine_type()->val_int();
const Sp_handler *sph= Sp_handler::handler((stored_procedure_type)
type);
stored_procedure_type type= (stored_procedure_type)procs_priv.routine_type()->val_int();
const Sp_handler *sph= Sp_handler::handler(type);
if (!sph || !(hash= sph->get_priv_hash()))
{
sql_print_warning("'procs_priv' entry '%s' "