Initialise top leechers vector

This commit is contained in:
Dirk Engling 2024-05-10 16:31:42 +02:00
parent 37f5b2403b
commit 59c1c30107

View File

@ -329,6 +329,7 @@ size_t stats_top_txt(char *reply, int amount) {
byte_zero(top100s, sizeof(top100s));
byte_zero(top100c, sizeof(top100c));
byte_zero(top100l, sizeof(top100l));
for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) {
ot_vector *torrents_list = mutex_bucket_lock(bucket);