From 8d22db9e22ee4750cdf924163124078d62e7b48c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 23 Jun 2008 13:48:54 +0200 Subject: [PATCH] com_select(): Minor cleanup. Move params struct into the if clause where it is used. --- select.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; -- 2.39.5