comparison src/http/modules/ngx_http_map_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 a6d6d762c554
children 98e288c6dac3
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
158 { 158 {
159 ngx_http_map_conf_t *mcf; 159 ngx_http_map_conf_t *mcf;
160 160
161 mcf = ngx_palloc(cf->pool, sizeof(ngx_http_map_conf_t)); 161 mcf = ngx_palloc(cf->pool, sizeof(ngx_http_map_conf_t));
162 if (mcf == NULL) { 162 if (mcf == NULL) {
163 return NGX_CONF_ERROR; 163 return NULL;
164 } 164 }
165 165
166 mcf->hash_max_size = NGX_CONF_UNSET_UINT; 166 mcf->hash_max_size = NGX_CONF_UNSET_UINT;
167 mcf->hash_bucket_size = NGX_CONF_UNSET_UINT; 167 mcf->hash_bucket_size = NGX_CONF_UNSET_UINT;
168 168