MINOR: counters: make it easier to extend the amount of tracked counters
By properly affecting the flags and values, it becomes easier to add
more tracked counters, for example for experimentation. It also slightly
reduces the code and the number of tests. No counters were added with
this patch.
diff --git a/src/session.c b/src/session.c
index d44583b..404fd06 100644
--- a/src/session.c
+++ b/src/session.c
@@ -97,10 +97,8 @@
*/
s->flags = 0;
s->logs.logwait = p->to_log;
- s->stkctr[0].entry = NULL;
- s->stkctr[1].entry = NULL;
- s->stkctr[0].table = NULL;
- s->stkctr[1].table = NULL;
+
+ memset(s->stkctr, 0, sizeof(s->stkctr));
s->listener = l;
s->fe = p;