Initialize child count in modcall_recurse to explicitly handle the case of no
children, making the code at least slightly easier to read, if not actually
fixing an issue.
This fixes the following Coverity error:
Error: UNINIT (CWE-457):
freeradius-server-2.2.6/src/main/modcall.c:691: var_decl: Declaring variable "count" without initializer.
freeradius-server-2.2.6/src/main/modcall.c:727: uninit_use: Using uninitialized value "count".
if ((c->type == MOD_LOAD_BALANCE) ||
(c->type == MOD_REDUNDANT_LOAD_BALANCE)) {
- int count;
+ int count = 0;
modcallable *this, *found;
modgroup *g;