Commit 7669259c 7669259c84f2f2255c0a423f779faa4b35737d58 by Sergey Poznyakoff

Bugfix.

* libargp/muinit.c (mu_app_init): Do not parse configs if
--config-help was given.
1 parent 8a6fdf20
1 2008-11-11 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 * libargp/muinit.c (mu_app_init): Do not parse configs if
4 --config-help was given.
5
1 2008-11-09 Wojciech Polak <polak@gnu.org> 6 2008-11-09 Wojciech Polak <polak@gnu.org>
2 7
3 Fix typos. 8 Fix typos.
......
...@@ -84,7 +84,6 @@ mu_app_init (struct argp *myargp, const char **capa, ...@@ -84,7 +84,6 @@ mu_app_init (struct argp *myargp, const char **capa,
84 84
85 mu_libcfg_init (excapa); 85 mu_libcfg_init (excapa);
86 free (excapa); 86 free (excapa);
87 mu_parse_config_files (cfg_param, data);
88 87
89 if (mu_help_config_mode) 88 if (mu_help_config_mode)
90 { 89 {
...@@ -115,6 +114,8 @@ mu_app_init (struct argp *myargp, const char **capa, ...@@ -115,6 +114,8 @@ mu_app_init (struct argp *myargp, const char **capa,
115 mu_stream_destroy (&stream, NULL); 114 mu_stream_destroy (&stream, NULL);
116 exit (0); 115 exit (0);
117 } 116 }
117 else
118 mu_parse_config_files (cfg_param, data);
118 119
119 if (mu_cfg_parser_verbose) 120 if (mu_cfg_parser_verbose)
120 cfgflags |= MU_PARSE_CONFIG_VERBOSE; 121 cfgflags |= MU_PARSE_CONFIG_VERBOSE;
......