Fix crash in send_stored_logs()

This commit is contained in:
Dmitry Semyonov authored and Mukund Sivaraman committed 2010-04-21 20:35:50 +05:30
1 parent d30ee746a7
commit 7edb6e047c
1 file changed
+3 -2
+3 -2
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) {