Fix crash in send_stored_logs()

This commit is contained in:
Dmitry Semyonov 2010-04-21 20:32:41 +05:30 committed by Mukund Sivaraman
parent d30ee746a7
commit 7edb6e047c

View File

@ -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) {