Revert "[common] option: fix bounds check in the argument parser."

This reverts commit db78c8e468.
I need some sleep, this was already fine as it was...
This commit is contained in:
Geoffrey McRae 2022-01-30 20:25:02 +11:00
parent db78c8e468
commit 35bf30910b

View File

@ -272,9 +272,6 @@ static bool option_set(struct Option * opt, const char * value)
bool option_parse(int argc, char * argv[]) bool option_parse(int argc, char * argv[])
{ {
if (argc < 1)
return true;
for(int a = 1; a < argc; ++a) for(int a = 1; a < argc; ++a)
{ {
struct Option * o = NULL; struct Option * o = NULL;