Coverity sees the nonnull attribute of call_env_alloc()'s t_rules
attribute, which compile_module() passes unlang_ctx->rules to.
Earlier unlang_ctx->rules is checked, so Coverity infers it can be
NULL and complains about the lack of checking on the call_env_alloc().
"but no inst_size set",
inst->module->name, unlang_ctx->section_name1, unlang_ctx->section_name2);
+ if (!unlang_ctx->rules) {
+ cf_log_err(ci, "Failed compiling %s - no rules", inst->module->name);
+ goto error;
+ }
single->call_env = call_env_alloc(single, single->self.name, method_env,
unlang_ctx->rules,
inst->dl_inst->conf, single->instance->dl_inst->data);