Move conf_init/clear into main - no behaviour change; from Tiago Cunha.
This commit is contained in:
5
calmwm.c
5
calmwm.c
@@ -108,8 +108,11 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
conf_init(&Conf);
|
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);
|
warnx("config file %s has errors, not loading", conf_path);
|
||||||
|
conf_clear(&Conf);
|
||||||
|
conf_init(&Conf);
|
||||||
|
}
|
||||||
free(conf_path);
|
free(conf_path);
|
||||||
|
|
||||||
x_init(display_name);
|
x_init(display_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user