Bugfix.
* libargp/muinit.c (mu_app_init): Do not parse configs if --config-help was given.
Showing
2 changed files
with
7 additions
and
1 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment