mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
BUG#24896 magnus' suggestion
This commit is contained in:
@@ -322,8 +322,8 @@ static int create_defaults_file(const char *path, const char *forced_path)
|
|||||||
dynstr_set(&buf, "\n[client]");
|
dynstr_set(&buf, "\n[client]");
|
||||||
if (opt_password)
|
if (opt_password)
|
||||||
{
|
{
|
||||||
if (dynstr_append_mem(&buf, "\npassword=", 10)
|
if (dynstr_append(&buf, "\npassword=")
|
||||||
|| dynstr_append_mem(&buf, opt_password, strlen(opt_password)))
|
|| dynstr_append(&buf, opt_password))
|
||||||
{
|
{
|
||||||
ret = 1;
|
ret = 1;
|
||||||
goto error;
|
goto error;
|
||||||
|
Reference in New Issue
Block a user