Skip to content

Commit

Permalink
Do not ignore mce_conf_init() failures
Browse files Browse the repository at this point in the history
Previously missing ini files resulted in failure reporting. Since
this is no longer the case, mce should exit if config init fails.
  • Loading branch information
spiiroin committed Feb 7, 2013
1 parent 7e23d5e commit 5032b36
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mce.c
Expand Up @@ -868,10 +868,11 @@ int main(int argc, char **argv)
/* Initialise subsystems */

/* Get configuration options */
/* ignore errors; this way the defaults will be used if
* the configuration file is invalid or unavailable
*/
(void)mce_conf_init();
if( !mce_conf_init() ) {
mce_log(LL_CRIT,
"Failed to initialise configuration options");
exit(EXIT_FAILURE);
}

/* Initialise D-Bus */
if (mce_dbus_init(systembus) == FALSE) {
Expand Down

0 comments on commit 5032b36

Please sign in to comment.