summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <jani@rhols221.adsl.netsonic.fi>2002-09-05 14:22:52 +0300
committerunknown <jani@rhols221.adsl.netsonic.fi>2002-09-05 14:22:52 +0300
commitc37aa34aa063457bf2d901ea3dc43271f4b5db5b (patch)
tree5aab1e74e6a3877d4e4332f78aa3abe18161a171 /mysys
parente56ad0cf61845c729f171b41dc9b74fddedbbd43 (diff)
downloadmariadb-git-c37aa34aa063457bf2d901ea3dc43271f4b5db5b.tar.gz
Fixed a bug in my_getopt and mysqld.cc
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index f72511c3014..494e7ac559c 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -275,7 +275,7 @@ int handle_options(int *argc, char ***argv,
return EXIT_AMBIGUOUS_OPTION;
}
}
- if (must_be_var && !optp->value)
+ if (must_be_var && optp->var_type == GET_NO_ARG)
{
if (my_getopt_print_errors)
fprintf(stderr, "%s: option '%s' cannot take an argument\n",