mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
fix warnings
server-tools/instance-manager/buffer.cc: perform initialization of static consts in .cc file to respect VC6 server-tools/instance-manager/buffer.h: fix compiler warning server-tools/instance-manager/commands.cc: fix compiler warning server-tools/instance-manager/user_map.cc: fix compiler warning
This commit is contained in:
@ -66,7 +66,8 @@ int User::init(const char *line)
|
||||
*/
|
||||
if (password[strlen(password)-2] == '\r')
|
||||
line_ending_len= 2;
|
||||
if (strlen(password) != SCRAMBLED_PASSWORD_CHAR_LENGTH + line_ending_len)
|
||||
if (strlen(password) != (uint) (SCRAMBLED_PASSWORD_CHAR_LENGTH +
|
||||
line_ending_len))
|
||||
goto err;
|
||||
|
||||
memcpy(user, name_begin, user_length);
|
||||
|
Reference in New Issue
Block a user