Mercurial > hg > nginx
comparison src/http/modules/ngx_http_rewrite_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 | 912ce4113f21 |
children | cf21d35248bc |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
218 { | 218 { |
219 ngx_http_rewrite_loc_conf_t *conf; | 219 ngx_http_rewrite_loc_conf_t *conf; |
220 | 220 |
221 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_rewrite_loc_conf_t)); | 221 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_rewrite_loc_conf_t)); |
222 if (conf == NULL) { | 222 if (conf == NULL) { |
223 return NGX_CONF_ERROR; | 223 return NULL; |
224 } | 224 } |
225 | 225 |
226 conf->stack_size = NGX_CONF_UNSET_UINT; | 226 conf->stack_size = NGX_CONF_UNSET_UINT; |
227 conf->log = NGX_CONF_UNSET; | 227 conf->log = NGX_CONF_UNSET; |
228 conf->uninitialized_variable_warn = NGX_CONF_UNSET; | 228 conf->uninitialized_variable_warn = NGX_CONF_UNSET; |