Don't use log before initialization

The print_log_n_stderr function used to implicitly initialize the log
manager. As this is no longer done, no logging must be done before the log
manager is initialized.
This commit is contained in:
Markus Mäkelä
2018-08-25 08:25:31 +03:00
parent 742ebd0437
commit c92aa02961

View File

@ -2965,7 +2965,7 @@ static bool sniff_configuration(const char* filepath)
snprintf(errorbuffer, sizeof(errorbuffer), FORMAT_MALLOC, filepath);
}
print_log_n_stderr(true, true, errorbuffer, errorbuffer, 0);
print_log_n_stderr(false, true, errorbuffer, errorbuffer, 0);
}
return rv == 0;