Commit 6bc1a1bf authored by unknown's avatar unknown

Proposed fix for #3791 (embedded: mysql segfaults if cannot find

errmsg.sys)


client/mysql.cc:
  Checking of mysql_server_init output added
parent afe09e48
......@@ -374,7 +374,11 @@ int main(int argc,char *argv[])
exit(1);
}
glob_buffer.realloc(512);
mysql_server_init(0, NULL, (char**) server_default_groups);
if (mysql_server_init(0, NULL, (char**) server_default_groups))
{
free_defaults(defaults_argv);
exit(1);
}
completion_hash_init(&ht, 128);
init_alloc_root(&hash_mem_root, 16384, 0);
bzero((char*) &mysql, sizeof(mysql));
......
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