From 35bf30910bc98400c56267375c550920e5b0c46f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 30 Jan 2022 20:25:02 +1100 Subject: [PATCH] Revert "[common] option: fix bounds check in the argument parser." This reverts commit db78c8e46847bf5092ba0a42d2c44a64ddf7f1d3. I need some sleep, this was already fine as it was... --- common/src/option.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/src/option.c b/common/src/option.c index f7b2dc8c..1876a6af 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -272,9 +272,6 @@ static bool option_set(struct Option * opt, const char * value) bool option_parse(int argc, char * argv[]) { - if (argc < 1) - return true; - for(int a = 1; a < argc; ++a) { struct Option * o = NULL;