Move params struct into the if clause where it is used.
int com_select(void)
{
int ret;
- struct select_cmdline_parser_params params = {
- .override = 1,
- .initialize = 1,
- .check_required = 1,
- .check_ambiguity = 1,
- .print_errors = 1
- };
-
if (conf.select_options_given) {
+ struct select_cmdline_parser_params params = {
+ .override = 1,
+ .initialize = 1,
+ .check_required = 1,
+ .check_ambiguity = 1,
+ .print_errors = 1
+ };
+
if (select_cmdline_parser_string_ext(conf.select_options_arg,
&select_conf, "select", ¶ms))
return -E_SYNTAX;