summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-23 21:48:58 +0200
committerDirk Engling <erdgeist@erdgeist.org>2026-10-23 21:48:58 +0200
commitde67a4a721c0fda9a9b5955f235baafba9ba393d (patch)
tree38627ee2df6927e715e7043809d281b16abdbddc /ot_stats.c
parenta8def0e5eac98500267b52c7f0d9a7fbc2145a81 (diff)
Rework config file parser and tidy up mem inits
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 58ac4b8..15eef75 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -19,7 +19,6 @@
19#endif 19#endif
20 20
21/* Libowfat */ 21/* Libowfat */
22#include "byte.h"
23#include "io.h" 22#include "io.h"
24#include "ip4.h" 23#include "ip4.h"
25#include "ip6.h" 24#include "ip6.h"
@@ -339,9 +338,9 @@ size_t stats_top_txt(char *reply, size_t amount) {
339 if (amount > 100) 338 if (amount > 100)
340 amount = 100; 339 amount = 100;
341 340
342 byte_zero(top100s, sizeof(top100s)); 341 memset(top100s, 0, sizeof(top100s));
343 byte_zero(top100c, sizeof(top100c)); 342 memset(top100c, 0, sizeof(top100c));
344 byte_zero(top100l, sizeof(top100l)); 343 memset(top100l, 0, sizeof(top100l));
345 344
346 /* Iterate over complete torrent list */ 345 /* Iterate over complete torrent list */
347 for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) { 346 for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) {