summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-01-11 19:35:00 +0200
committerunknown <monty@mysql.com>2005-01-11 19:35:00 +0200
commit28b783eada4a151935118f3760e0a8a4d217bce8 (patch)
treed01562716572de6f0285dc0f3842b50e305f565d /client
parent4eec8ab1f6547cf4b7fb4877928dfd6abd11a159 (diff)
parent7bb97a4ad8aee442d657de23093d1c9f4a2013d5 (diff)
downloadmariadb-git-28b783eada4a151935118f3760e0a8a4d217bce8.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1 sql/sql_class.h: Auto merged
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index bfa827a6e95..739cc77bd14 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -330,6 +330,16 @@ static sig_handler mysql_end(int sig);
int main(int argc,char *argv[])
{
char buff[80];
+ char *defaults, *extra_defaults;
+ char *emb_argv[3];
+ int emb_argc= 1;
+
+ emb_argv[0]= argv[0];
+ get_defaults_files(argc, argv, &defaults, &extra_defaults);
+ if (defaults)
+ emb_argv[emb_argc++]= defaults;
+ if (extra_defaults)
+ emb_argv[emb_argc++]= extra_defaults;
MY_INIT(argv[0]);
DBUG_ENTER("main");
@@ -375,7 +385,7 @@ int main(int argc,char *argv[])
my_end(0);
exit(1);
}
- if (mysql_server_init(0, NULL, (char**) server_default_groups))
+ if (mysql_server_init(emb_argc, emb_argv, (char**) server_default_groups))
{
free_defaults(defaults_argv);
my_end(0);