Skip to content
Snippets Groups Projects
Commit 5a4fba76 authored by Yuriy Vostrikov's avatar Yuriy Vostrikov
Browse files

[core] Better param name in stat_register()

parent 34972586
No related merge requests found
......@@ -44,11 +44,11 @@ static int stats_max = 0;
static int base = 0;
int
stat_register(char **name, size_t count)
stat_register(char **name, size_t max_idx)
{
int initial_base = base;
for (int i = 0; i < count; i++, name++, base++) {
for (int i = 0; i < max_idx; i++, name++, base++) {
if (stats_size <= base) {
stats_size += 1024;
stats = realloc(stats, sizeof(*stats) * stats_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment