Fixed segfault when logging was enabled.

m->chats[c] can be NULL if more than one group chat is created and
one of the first ones is deleted.
This commit is contained in:
irungentoo 2014-06-11 09:18:14 -04:00
parent 95e896a52e
commit 63f25f86d3
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -2320,6 +2320,7 @@ void do_messenger(Messenger *m)
size_t c; size_t c;
for (c = 0; c < m->numchats; c++) { for (c = 0; c < m->numchats; c++) {
if (m->chats[c])
Assoc_status(m->chats[c]->assoc); Assoc_status(m->chats[c]->assoc);
} }
} }