diff options
author | serg@serg.mylan <> | 2004-04-30 23:12:37 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2004-04-30 23:12:37 +0200 |
commit | d9bed7491f39c53d75d377e170ebca6befa32acd (patch) | |
tree | a5b80eaf42dbb45a25c6d24448a1903aed989ea7 /mysys/my_getopt.c | |
parent | f2e5a7829746b35c892ec5e73bc9960c589db2a5 (diff) | |
download | mariadb-git-d9bed7491f39c53d75d377e170ebca6befa32acd.tar.gz |
better followup fix for my_getopt (Argh!)
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r-- | mysys/my_getopt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index 3d216ed7aa0..da7c0ebd1d2 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -364,16 +364,16 @@ int handle_options(int *argc, char ***argv, } else { + if (optp->arg_type == OPT_ARG) + { + if (optp->var_type == GET_BOOL) + *((my_bool*) optp->value)= (my_bool) 1; + get_one_option(optp->id, optp, argument); + continue; + } /* Check if there are more arguments after this one */ if (!pos[1]) { - if (optp->arg_type == OPT_ARG) - { - if (optp->var_type == GET_BOOL) - *((my_bool*) optp->value)= (my_bool) 1; - get_one_option(optp->id, optp, argument); - continue; - } if (my_getopt_print_errors) fprintf(stderr, "%s: option '-%c' requires an argument\n", |