diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-01-23 16:18:09 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-01-23 16:18:09 +0100 |
commit | 682da0aa750c059a4f81fadcdf42c9211602eda7 (patch) | |
tree | 965c7ee5c9d87a7158ee74b50edf147ebb67a27a /sql-common | |
parent | a260b155542179bec75a6bbe1e430bea57b70ad6 (diff) | |
download | mariadb-git-682da0aa750c059a4f81fadcdf42c9211602eda7.tar.gz |
cleanup: use MYF() for mysys flags
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 2 | ||||
-rw-r--r-- | sql-common/client_plugin.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 675774b26a7..0423b44e26f 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -1170,7 +1170,7 @@ static int add_init_command(struct st_mysql_options *options, const char *cmd) { options->init_commands= (DYNAMIC_ARRAY*)my_malloc(sizeof(DYNAMIC_ARRAY), MYF(MY_WME)); - my_init_dynamic_array(options->init_commands,sizeof(char*),5, 5, 0); + my_init_dynamic_array(options->init_commands,sizeof(char*),5, 5, MYF(0)); } if (!(tmp= my_strdup(cmd,MYF(MY_WME))) || diff --git a/sql-common/client_plugin.c b/sql-common/client_plugin.c index bc0cff85eb6..5b59c4e0e71 100644 --- a/sql-common/client_plugin.c +++ b/sql-common/client_plugin.c @@ -251,7 +251,7 @@ int mysql_client_plugin_init() bzero(&mysql, sizeof(mysql)); /* dummy mysql for set_mysql_extended_error */ pthread_mutex_init(&LOCK_load_client_plugin, MY_MUTEX_INIT_SLOW); - init_alloc_root(&mem_root, 128, 128, 0); + init_alloc_root(&mem_root, 128, 128, MYF(0)); bzero(&plugin_list, sizeof(plugin_list)); |