summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-04-30 23:12:37 +0200
committerunknown <serg@serg.mylan>2004-04-30 23:12:37 +0200
commitd3f1288044e609cdc1275b9357eed348bef48819 (patch)
treea5b80eaf42dbb45a25c6d24448a1903aed989ea7 /mysys
parent1175b48555a51c1d4c9dd8f1fe26506cfa85380a (diff)
downloadmariadb-git-d3f1288044e609cdc1275b9357eed348bef48819.tar.gz
better followup fix for my_getopt (Argh!)
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_getopt.c14
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",