From 481150224edabeee0a6bbfdab232df58e5c1224e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 18 Jan 2011 21:21:48 +0100 Subject: [PATCH] gui: Check only once for invalid key maps. No need to call check_key_map_args() twice. --- gui.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gui.c b/gui.c index ebddd88c..5ac1333b 100644 --- a/gui.c +++ b/gui.c @@ -1396,10 +1396,6 @@ int main(int argc, char *argv[]) gui_cmdline_parser(argc, argv, &conf); HANDLE_VERSION_FLAG("gui", conf); - if (check_key_map_args() < 0) { - fprintf(stderr, "invalid key map\n"); - exit(EXIT_FAILURE); - } cf = configfile_exists(); if (!cf && conf.config_file_given) { fprintf(stderr, "can not read config file %s\n", @@ -1417,7 +1413,7 @@ int main(int argc, char *argv[]) } loglevel = get_loglevel_by_name(conf.loglevel_arg); if (check_key_map_args() < 0) { - fprintf(stderr, "invalid key map in config file\n"); + fprintf(stderr, "invalid key map\n"); exit(EXIT_FAILURE); } init_theme_or_die(conf.theme_arg, &theme); -- 2.39.5