Mercurial > hg > nginx
comparison src/http/modules/ngx_http_addition_filter_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 | 87b8c44906b5 |
children | 29ba1de1ab0b |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
210 { | 210 { |
211 ngx_http_addition_conf_t *conf; | 211 ngx_http_addition_conf_t *conf; |
212 | 212 |
213 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_addition_conf_t)); | 213 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_addition_conf_t)); |
214 if (conf == NULL) { | 214 if (conf == NULL) { |
215 return NGX_CONF_ERROR; | 215 return NULL; |
216 } | 216 } |
217 | 217 |
218 /* | 218 /* |
219 * set by ngx_pcalloc(): | 219 * set by ngx_pcalloc(): |
220 * | 220 * |