Fix crash in send_stored_logs()
This commit is contained in:
parent
d30ee746a7
commit
7edb6e047c
@ -206,11 +206,12 @@ void send_stored_logs (void)
|
|||||||
{
|
{
|
||||||
char *string;
|
char *string;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
int level;
|
int level;
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
if (log_message_storage == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
log_message(LOG_DEBUG, "sending stored logs");
|
log_message(LOG_DEBUG, "sending stored logs");
|
||||||
|
|
||||||
for (i = 0; (ssize_t) i != vector_length (log_message_storage); ++i) {
|
for (i = 0; (ssize_t) i != vector_length (log_message_storage); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user