Commit 75dde8e9 authored by unknown's avatar unknown

Child segfault when tring to call "mysql_error(NULL)", fixed by not

    assigning "mysql" variable from return value of mysql_real_connect.


client/mysqlslap.c:
  hild segfault when tring to call "mysql_error(NULL)", fiexed by not
  assigning "mysql" variable from return value of mysql_real_connect.
parent ac376242
......@@ -1132,7 +1132,7 @@ run_task(thread_context *con)
my_lock(lock_file, F_RDLCK, 0, F_TO_EOF, MYF(0));
if (!opt_only_print)
{
if (!(mysql= mysql_real_connect(mysql, host, user, opt_password,
if (!(mysql_real_connect(mysql, host, user, opt_password,
create_schema_string,
opt_mysql_port,
opt_mysql_unix_port,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment