mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
fixed assignments to meet server coding guidelines
This commit is contained in:
parent
5d8222cd6f
commit
7a42570fb7
1 changed files with 3 additions and 3 deletions
|
@ -296,19 +296,19 @@ void Options::setup_windows_defaults()
|
||||||
if (!GetModuleFileName(NULL, default_password_file_name,
|
if (!GetModuleFileName(NULL, default_password_file_name,
|
||||||
sizeof(default_password_file_name)))
|
sizeof(default_password_file_name)))
|
||||||
return -1;
|
return -1;
|
||||||
char *filename = strstr(default_password_file_name, ".exe");
|
char *filename= strstr(default_password_file_name, ".exe");
|
||||||
strcpy(filename, ".passwd");
|
strcpy(filename, ".passwd");
|
||||||
|
|
||||||
if (!GetModuleFileName(NULL, default_log_file_name,
|
if (!GetModuleFileName(NULL, default_log_file_name,
|
||||||
sizeof(default_log_file_name)))
|
sizeof(default_log_file_name)))
|
||||||
return -1;
|
return -1;
|
||||||
filename = strstr(default_log_file_name, ".exe");
|
filename= strstr(default_log_file_name, ".exe");
|
||||||
strcpy(filename, ".log");
|
strcpy(filename, ".log");
|
||||||
|
|
||||||
if (!GetModuleFileName(NULL, windows_config_file,
|
if (!GetModuleFileName(NULL, windows_config_file,
|
||||||
sizeof(windows_config_file)))
|
sizeof(windows_config_file)))
|
||||||
return -1;
|
return -1;
|
||||||
char *slash = strrchr(windows_config_file, '\\');
|
char *slash= strrchr(windows_config_file, '\\');
|
||||||
strcpy(slash, "\\my.ini");
|
strcpy(slash, "\\my.ini");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue