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

@@ -545,7 +545,7 @@ popfile(void)
int
parse_config(const char *filename, struct conf *xconf)
{
int errors = 0;
int errors = 0;
conf = xconf;
@@ -558,10 +558,5 @@ parse_config(const char *filename, struct conf *xconf)
errors = file->errors;
popfile();
if (errors) {
conf_clear(conf);
conf_init(conf);
}
return (errors ? -1 : 0);
}