diff options
author | Dmitry Semyonov <linulin@gmail.com> | 2010-04-21 20:32:41 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2010-04-21 20:35:50 +0530 |
commit | 7edb6e047c4314ac7031d817fb06107e2c39c7c7 (patch) | |
tree | b5ca96e75c7268a7ef89bdde7d3ba7ec601ad2ae | |
parent | d30ee746a7e2f0bea365ab7cf99bcc82bd020acc (diff) | |
download | tinyproxy-7edb6e047c4314ac7031d817fb06107e2c39c7c7.tar.gz tinyproxy-7edb6e047c4314ac7031d817fb06107e2c39c7c7.zip |
Fix crash in send_stored_logs()
-rw-r--r-- | src/log.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -206,11 +206,12 @@ void send_stored_logs (void) { char *string; char *ptr; - int level; - size_t i; + if (log_message_storage == NULL) + return; + log_message(LOG_DEBUG, "sending stored logs"); for (i = 0; (ssize_t) i != vector_length (log_message_storage); ++i) { |