summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <jani@rhols221.adsl.netsonic.fi>2002-04-30 12:32:45 +0300
committerunknown <jani@rhols221.adsl.netsonic.fi>2002-04-30 12:32:45 +0300
commit88b15bc12277a4dd2e2329ab503e8b538f7ecc62 (patch)
treec8fddc7fd8a8e335c303f416c111d07a0fa77d51 /client
parentff3029502ba7b5527055a8464f7afc710dd8c6a9 (diff)
downloadmariadb-git-88b15bc12277a4dd2e2329ab503e8b538f7ecc62.tar.gz
Fixed a bug in mysqldump.c
client/mysqldump.c: Fixed a bug in get_one_option(), --set-variable didn't work right.
Diffstat (limited to 'client')
-rw-r--r--client/mysqldump.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 447499c64e9..22d63244d59 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -35,7 +35,7 @@
** and adapted to mysqldump 05/11/01 by Jani Tolonen
*/
-#define DUMP_VERSION "9.01"
+#define DUMP_VERSION "9.02"
#include <my_global.h>
#include <my_sys.h>
@@ -198,8 +198,7 @@ static struct my_option my_long_options[] =
0, 0},
{"result-file", 'r',
"Direct output to a given file. This option should be used in MSDOS, because it prevents new line '\\n' from being converted to '\\n\\r' (newline + carriage return).",
- (gptr*) &md_result_file, (gptr*) &md_result_file, 0, GET_STR, REQUIRED_ARG,
- 0, 0, 0, 0, 0, 0},
+ 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"socket", 'S', "Socket file to use for connection.",
(gptr*) &opt_mysql_unix_port, (gptr*) &opt_mysql_unix_port, 0, GET_STR,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
@@ -363,9 +362,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
opt_xml = 1;
opt_disable_keys=0;
break;
- default:
- fprintf(stderr,"%s: Illegal option character '%c'\n",my_progname,opterr);
- /* Fall throught */
case 'I':
case '?':
usage();