* etc. allocated in the subsection.
*/
if (!subcs) {
+ if (DEBUG_ENABLED4) cf_log_debug(cs, "Allocating fake section \"%s\"", rule->name);
subcs = cf_section_alloc(cs, rule->name, NULL);
if (!subcs) return -1;
static int cf_subsection_parse(TALLOC_CTX *ctx, void *out, CONF_SECTION *cs, CONF_PARSER const *rule)
{
CONF_SECTION *subcs = NULL;
- int count = 0, i, ret;
+ int count = 0, i = 0, ret;
char const *name = rule->name;
fr_type_t type = rule->type;
talloc_free(array);
return ret;
}
+
+ i++;
}
if (out) *((uint8_t ***)out) = array;