1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 06:16:45 +02:00

A couple small fixes

This commit is contained in:
jfreegman
2020-05-19 21:44:35 -04:00
parent dcf3baf60f
commit f012007cc4
2 changed files with 12 additions and 8 deletions

View File

@ -308,7 +308,9 @@ void sort_friendlist_index(void)
}
}
qsort(Friends.index, Friends.num_friends, sizeof(uint32_t), index_name_cmp);
if (Friends.num_friends > 0) {
qsort(Friends.index, Friends.num_friends, sizeof(uint32_t), index_name_cmp);
}
}
static int index_name_cmp_block(const void *n1, const void *n2)