summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <bpontz@shasta.mysql.com>2006-04-12 23:16:15 -0400
committerunknown <bpontz@shasta.mysql.com>2006-04-12 23:16:15 -0400
commit75dde8e928c4c5cfff93a0fb7b26ed0b65063e1d (patch)
treed15b2653afaac0acca37b6ee56d046f29242ccce /client
parentac376242698a4579fa69e2b13b9091b2f309fe6c (diff)
downloadmariadb-git-75dde8e928c4c5cfff93a0fb7b26ed0b65063e1d.tar.gz
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.
Diffstat (limited to 'client')
-rw-r--r--client/mysqlslap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c
index 904bf432071..8dc55969870 100644
--- a/client/mysqlslap.c
+++ b/client/mysqlslap.c
@@ -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,