Move conf_init/clear into main - no behaviour change; from Tiago Cunha.

This commit is contained in:
okan
2014-01-28 00:42:20 +00:00
parent 0608610cc7
commit 51b3fbee52
2 changed files with 5 additions and 7 deletions

View File

@@ -108,8 +108,11 @@ main(int argc, char **argv)
}
conf_init(&Conf);
if (conf_path && (parse_config(conf_path, &Conf) == -1))
if (conf_path && (parse_config(conf_path, &Conf) == -1)) {
warnx("config file %s has errors, not loading", conf_path);
conf_clear(&Conf);
conf_init(&Conf);
}
free(conf_path);
x_init(display_name);