Skip to content
Snippets Groups Projects
Commit 07c67138 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

fixed the option parser to not loop when a long option is specified

parent 10717bd3
No related branches found
No related tags found
No related merge requests found
......@@ -1464,7 +1464,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
}
hit = -1;
} while(!singleopt && *++parse && !*usedarg);
} while(!longopt && !singleopt && *++parse && !*usedarg);
return PARAM_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment