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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user