comparison src/http/modules/ngx_http_fastcgi_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
1831 { 1831 {
1832 ngx_http_fastcgi_loc_conf_t *conf; 1832 ngx_http_fastcgi_loc_conf_t *conf;
1833 1833
1834 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_fastcgi_loc_conf_t)); 1834 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_fastcgi_loc_conf_t));
1835 if (conf == NULL) { 1835 if (conf == NULL) {
1836 return NGX_CONF_ERROR; 1836 return NULL;
1837 } 1837 }
1838 1838
1839 /* 1839 /*
1840 * set by ngx_pcalloc(): 1840 * set by ngx_pcalloc():
1841 * 1841 *