summaryrefslogtreecommitdiff
path: root/client/mysql_plugin.c
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-03-23 10:53:25 +0100
committerSergei Golubchik <sergii@pisem.net>2012-03-23 10:53:25 +0100
commit92e2b80c76dfeed2bb81775bc5c28aaef9f3f05a (patch)
tree52037cade5fb8d4d098dcfcd728b6b04dc506c2d /client/mysql_plugin.c
parent02d982a90b830ce373bae91c6113afc65e2a970e (diff)
downloadmariadb-git-92e2b80c76dfeed2bb81775bc5c28aaef9f3f05a.tar.gz
MDEV-186 Client programs throw warnings about memory loss when executed with --help or alike
suppress these harmless but confusing warnings. fix the program name (MY_INIT) in mysqldump client/mysqldump.c: for backward compatibility, prefix mysqldump error messages with "mysqldump", not with the full path of the executable
Diffstat (limited to 'client/mysql_plugin.c')
-rw-r--r--client/mysql_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/mysql_plugin.c b/client/mysql_plugin.c
index 15f67e2b3e7..53be700e601 100644
--- a/client/mysql_plugin.c
+++ b/client/mysql_plugin.c
@@ -100,6 +100,7 @@ int main(int argc,char *argv[])
char operation[16];
MY_INIT(argv[0]);
+ sf_leaking_memory=1; /* don't report memory leaks on early exits */
plugin_data.name= 0; // initialize name
/*