Commit 75dde8e9 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,