comparison src/http/modules/ngx_http_index_module.c @ 2912:c7d57b539248

return NULL instead of NGX_CONF_ERROR on a create conf failure
author Igor Sysoev <igor@sysoev.ru>
date Tue, 02 Jun 2009 16:09:44 +0000
parents 09cab3f8d92e
children a7637c2c1157
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
364 { 364 {
365 ngx_http_index_loc_conf_t *conf; 365 ngx_http_index_loc_conf_t *conf;
366 366
367 conf = ngx_palloc(cf->pool, sizeof(ngx_http_index_loc_conf_t)); 367 conf = ngx_palloc(cf->pool, sizeof(ngx_http_index_loc_conf_t));
368 if (conf == NULL) { 368 if (conf == NULL) {
369 return NGX_CONF_ERROR; 369 return NULL;
370 } 370 }
371 371
372 conf->indices = NULL; 372 conf->indices = NULL;
373 conf->max_index_len = 0; 373 conf->max_index_len = 0;
374 374