log: shortcut return in shutdown_logging() if logging_initialized == false

This does for instance happen at startup when logging has not yet been set up.

Michael
This commit is contained in:
Michael Adam 2010-01-10 19:24:23 +01:00
parent 65ef313cc4
commit 1dd1c2796a

View File

@ -284,6 +284,10 @@ done:
*/
void shutdown_logging (void)
{
if (!logging_initialized) {
return;
}
if (config.logf_name) {
close_log_file ();
} else if (config.syslog) {