diff options
author | Michael Adam <obnox@samba.org> | 2010-01-10 19:24:23 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-01-10 19:24:23 +0100 |
commit | 1dd1c2796aef14ece4137ae907f1a3da72e2c6c9 (patch) | |
tree | 9ec713d5c31ce964f2300aae820a6b32fa5767a7 | |
parent | 65ef313cc4601b5ad84d1da1800ff38bf8f046a9 (diff) | |
download | tinyproxy-1dd1c2796aef14ece4137ae907f1a3da72e2c6c9.tar.gz tinyproxy-1dd1c2796aef14ece4137ae907f1a3da72e2c6c9.zip |
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
-rw-r--r-- | src/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -284,6 +284,10 @@ done: */ void shutdown_logging (void) { + if (!logging_initialized) { + return; + } + if (config.logf_name) { close_log_file (); } else if (config.syslog) { |