mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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:
parent
95e896a52e
commit
63f25f86d3
|
@ -2320,6 +2320,7 @@ void do_messenger(Messenger *m)
|
|||
size_t c;
|
||||
|
||||
for (c = 0; c < m->numchats; c++) {
|
||||
if (m->chats[c])
|
||||
Assoc_status(m->chats[c]->assoc);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user