diff options
author | serg@serg.mylan <> | 2004-04-30 22:52:08 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2004-04-30 22:52:08 +0200 |
commit | f2e5a7829746b35c892ec5e73bc9960c589db2a5 (patch) | |
tree | ca8ff43407e052abcd4bc3c315dd947564c93af2 /mysys | |
parent | b1c6faa75e5952220874a8f0c39bdf506ea395f6 (diff) | |
download | mariadb-git-f2e5a7829746b35c892ec5e73bc9960c589db2a5.tar.gz |
followup - error fixed
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_getopt.c | 5 |
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; } |