summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorhf@deer.(none) <>2004-05-21 22:00:12 +0500
committerhf@deer.(none) <>2004-05-21 22:00:12 +0500
commit418dffe205c67f2ec38ba22f90ed77a60e47f2cc (patch)
tree3d52e56df8adca50f8e19dfd690455a1a3789f7d /client
parentcb07a07ed9b21aa5f3573464e221f57fff5af62c (diff)
parent0379682ea6177a53bcb793f5b54b7f2799d408c5 (diff)
downloadmariadb-git-418dffe205c67f2ec38ba22f90ed77a60e47f2cc.tar.gz
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.3744
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 8cbaf241bec..d3885645124 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -371,10 +371,16 @@ int main(int argc,char *argv[])
!(status.line_buff=batch_readline_init(max_allowed_packet+512,stdin)))
{
free_defaults(defaults_argv);
+ my_end(0);
+ exit(1);
+ }
+ if (mysql_server_init(0, NULL, (char**) server_default_groups))
+ {
+ free_defaults(defaults_argv);
+ my_end(0);
exit(1);
}
glob_buffer.realloc(512);
- mysql_server_init(0, NULL, (char**) server_default_groups);
completion_hash_init(&ht, 128);
init_alloc_root(&hash_mem_root, 16384, 0);
bzero((char*) &mysql, sizeof(mysql));