Mercurial > hg > nginx
comparison src/http/modules/ngx_http_proxy_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 | d65e58a8d3a4 |
children | 55ceaef03d34 |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
1881 { | 1881 { |
1882 ngx_http_proxy_loc_conf_t *conf; | 1882 ngx_http_proxy_loc_conf_t *conf; |
1883 | 1883 |
1884 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_proxy_loc_conf_t)); | 1884 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_proxy_loc_conf_t)); |
1885 if (conf == NULL) { | 1885 if (conf == NULL) { |
1886 return NGX_CONF_ERROR; | 1886 return NULL; |
1887 } | 1887 } |
1888 | 1888 |
1889 /* | 1889 /* |
1890 * set by ngx_pcalloc(): | 1890 * set by ngx_pcalloc(): |
1891 * | 1891 * |