Mercurial > hg > nginx
comparison src/http/modules/ngx_http_random_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 | 8e720b7fe6d2 |
children | 26784c34e8be 6b8284fc958d |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
278 { | 278 { |
279 ngx_http_random_index_loc_conf_t *conf; | 279 ngx_http_random_index_loc_conf_t *conf; |
280 | 280 |
281 conf = ngx_palloc(cf->pool, sizeof(ngx_http_random_index_loc_conf_t)); | 281 conf = ngx_palloc(cf->pool, sizeof(ngx_http_random_index_loc_conf_t)); |
282 if (conf == NULL) { | 282 if (conf == NULL) { |
283 return NGX_CONF_ERROR; | 283 return NULL; |
284 } | 284 } |
285 | 285 |
286 conf->enable = NGX_CONF_UNSET; | 286 conf->enable = NGX_CONF_UNSET; |
287 | 287 |
288 return conf; | 288 return conf; |