remove unnecessary condition on optfn_pickup_types()

`opts` here is always non-null, otherwise it leads segv at earlier code.
This commit is contained in:
SHIRAKATA Kentaro
2023-11-11 22:55:23 +09:00
committed by PatR
parent 88e2ee192d
commit 51042bb0df

View File

@@ -3285,8 +3285,6 @@ optfn_pickup_types(
return optn_ok;
}
if (req == get_val || req == get_cnf_val) {
if (!opts)
return optn_err;
oc_to_str(flags.pickup_types, ocl);
Sprintf(opts, "%s", ocl[0] ? ocl : "all");
return optn_ok;