static void * ngx_http_cp_create_loc_conf(ngx_conf_t *cf) { ngx_http_cp_loc_conf_t *conf; conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_cp_loc_conf_t)); if (conf == NULL) { return NULL; } ngx_http_wl_init_vars(&conf->whitelist); return conf; }
static void * ngx_http_cp_create_loc_conf(ngx_conf_t *cf) { ngx_http_cp_loc_conf_t *conf; conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_cp_loc_conf_t)); if (conf == NULL) { return NULL; } conf->enabled = NGX_CONF_UNSET; conf->log_enabled = NGX_CONF_UNSET; ngx_http_wl_init_vars(&conf->whitelist); return conf; }