summaryrefslogtreecommitdiff
path: root/mysys/my_getopt.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-04-30 22:52:08 +0200
committerunknown <serg@serg.mylan>2004-04-30 22:52:08 +0200
commit1175b48555a51c1d4c9dd8f1fe26506cfa85380a (patch)
treeca8ff43407e052abcd4bc3c315dd947564c93af2 /mysys/my_getopt.c
parentd5c22bf33136c8154f93820b04c83bdc4255d87d (diff)
downloadmariadb-git-1175b48555a51c1d4c9dd8f1fe26506cfa85380a.tar.gz
followup - error fixed
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r--mysys/my_getopt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index d304b5076f9..3d216ed7aa0 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -367,9 +367,10 @@ int handle_options(int *argc, char ***argv,
/* Check if there are more arguments after this one */
if (!pos[1])
{
- if (optp->var_type == GET_BOOL && optp->arg_type == OPT_ARG)
+ if (optp->arg_type == OPT_ARG)
{
- *((my_bool*) optp->value)= (my_bool) 1;
+ if (optp->var_type == GET_BOOL)
+ *((my_bool*) optp->value)= (my_bool) 1;
get_one_option(optp->id, optp, argument);
continue;
}