mirror of
https://github.com/Tha14/toxic.git
synced 2025-09-28 14:16:53 +02:00
fix segfault
This commit is contained in:
@@ -114,7 +114,7 @@ void kill_friendlist(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i <= Friends.max_idx; ++i) {
|
||||
for (i = 0; i < Friends.max_idx; ++i) {
|
||||
if (Friends.list[i].active && Friends.list[i].group_invite.key != NULL)
|
||||
free(Friends.list[i].group_invite.key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user