/* Implementation of <IfXXXXX>-style conditional sections. Callback
* to test condition must be in cmd->info, matching function type
- * test_conditional_section. */
+ * test_cond_section_fn. */
static const char *start_cond_section(cmd_parms *cmd, void *mconfig, const char *arg)
{
const char *endp = ap_strrchr_c(arg, '>');
- int not = (arg[0] == '!');
- int found;
+ int result, not = (arg[0] == '!');
test_cond_section_fn testfn = (test_cond_section_fn)cmd->info;
if (endp == NULL) {
return missing_container_arg(cmd);
}
- found = testfn(cmd, arg);
+ result = testfn(cmd, arg);
- if ((!not && found) || (not && !found)) {
+ if ((!not && result) || (not && !result)) {
ap_directive_t *parent = NULL;
ap_directive_t *current = NULL;
const char *retval;