From: Andre Noll Date: Mon, 23 Jun 2008 11:48:54 +0000 (+0200) Subject: com_select(): Minor cleanup. X-Git-Tag: v0.0.3~5 X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=commitdiff_plain;h=8d22db9e22ee4750cdf924163124078d62e7b48c com_select(): Minor cleanup. Move params struct into the if clause where it is used. --- diff --git a/select.c b/select.c index 226c164..0c73a58 100644 --- a/select.c +++ b/select.c @@ -590,15 +590,15 @@ out: 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;