mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
BUG#24896 magnus' suggestion
This commit is contained in:
parent
8375e6684d
commit
b9cce096a2
1 changed files with 2 additions and 2 deletions
|
@ -322,8 +322,8 @@ static int create_defaults_file(const char *path, const char *forced_path)
|
|||
dynstr_set(&buf, "\n[client]");
|
||||
if (opt_password)
|
||||
{
|
||||
if (dynstr_append_mem(&buf, "\npassword=", 10)
|
||||
|| dynstr_append_mem(&buf, opt_password, strlen(opt_password)))
|
||||
if (dynstr_append(&buf, "\npassword=")
|
||||
|| dynstr_append(&buf, opt_password))
|
||||
{
|
||||
ret = 1;
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Reference in a new issue