summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-05-10 16:31:42 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-05-10 16:31:42 +0200
commit59c1c30107ccba4c633ae7ca11c3249c88719e83 (patch)
tree3e104807624b5fb04636aac88ed2abd5ef176565
parent37f5b2403bd76a785c05afc843572f464410d457 (diff)
Initialise top leechers vector
-rw-r--r--ot_stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 245961d..b2eaec9 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -329,6 +329,7 @@ size_t stats_top_txt(char *reply, int amount) {
329 329
330 byte_zero(top100s, sizeof(top100s)); 330 byte_zero(top100s, sizeof(top100s));
331 byte_zero(top100c, sizeof(top100c)); 331 byte_zero(top100c, sizeof(top100c));
332 byte_zero(top100l, sizeof(top100l));
332 333
333 for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) { 334 for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) {
334 ot_vector *torrents_list = mutex_bucket_lock(bucket); 335 ot_vector *torrents_list = mutex_bucket_lock(bucket);