Mercurial > hg > nginx
comparison src/http/modules/ngx_http_browser_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 | fa03c3846ca4 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
421 { | 421 { |
422 ngx_http_browser_conf_t *conf; | 422 ngx_http_browser_conf_t *conf; |
423 | 423 |
424 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_browser_conf_t)); | 424 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_browser_conf_t)); |
425 if (conf == NULL) { | 425 if (conf == NULL) { |
426 return NGX_CONF_ERROR; | 426 return NULL; |
427 } | 427 } |
428 | 428 |
429 /* | 429 /* |
430 * set by ngx_pcalloc(): | 430 * set by ngx_pcalloc(): |
431 * | 431 * |