From 5281f34e6471af78526860442a2e38a07845e27f Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 24 Nov 2003 13:25:08 +0200 Subject: [PATCH] Fixed Bug#1907, option of type GET_BOOL with arg type OPT_ARG did not call get_one_option(). --- mysys/my_getopt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index 5644d81837d..662e33a3a5a 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -316,8 +316,6 @@ int handle_options(int *argc, char ***argv, else /* If argument differs from 0, enable option, else disable */ *((my_bool*) optp->value)= (my_bool) atoi(optend) != 0; } - (*argc)--; - continue; } else if (optp->arg_type == REQUIRED_ARG && !optend) {