summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorjani@rhols221.adsl.netsonic.fi <>2002-09-05 14:22:52 +0300
committerjani@rhols221.adsl.netsonic.fi <>2002-09-05 14:22:52 +0300
commit15ad3ee8069b5ed9c2fa4c8b10ef2fee611c0ae9 (patch)
tree5aab1e74e6a3877d4e4332f78aa3abe18161a171 /mysys
parente03d5bdca67f4527330ab9fc7016f15ca771d23e (diff)
downloadmariadb-git-15ad3ee8069b5ed9c2fa4c8b10ef2fee611c0ae9.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",