summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/log.c5
1 files changed, 3 insertions, 2 deletions
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) {