type FIO_OPT_STR_SET suggests the passed value should be empty or boolean value ([0|1]). But the given type accepts any integer value as there is no limit for min and max values. Add a limit to that. Signed-off-by: Ankit Kumar <ankit.kumar@xxxxxxxxxxx> --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 656a5025..6bad0d94 100644 --- a/parse.c +++ b/parse.c @@ -1434,7 +1434,7 @@ static void option_init(struct fio_option *o) return; if (o->name && !o->lname) log_err("Option %s: missing long option name\n", o->name); - if (o->type == FIO_OPT_BOOL) { + if (o->type == FIO_OPT_BOOL || o->type == FIO_OPT_STR_SET) { o->minval = 0; o->maxval = 1; } -- 2.17.1