mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
better followup fix for my_getopt (Argh!)
This commit is contained in:
parent
1175b48555
commit
d3f1288044
1 changed files with 7 additions and 7 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue