1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

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

errmsg.sys)
This commit is contained in:
hf@deer.(none)
2004-05-17 12:07:58 +05:00
parent c00bc7a803
commit 5bca8fd46d

View File

@@ -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));