From 7edb6e047c4314ac7031d817fb06107e2c39c7c7 Mon Sep 17 00:00:00 2001 From: Dmitry Semyonov Date: Wed, 21 Apr 2010 20:32:41 +0530 Subject: Fix crash in send_stored_logs() --- src/log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/log.c b/src/log.c index 0fdbcb5..e0f3567 100644 --- a/src/log.c +++ b/src/log.c @@ -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) { -- cgit v1.2.3