Mercurial > hg > nginx
comparison src/http/modules/ngx_http_auth_basic_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 | a6954ce88b80 |
children | dd1570b6f237 |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
370 { | 370 { |
371 ngx_http_auth_basic_loc_conf_t *conf; | 371 ngx_http_auth_basic_loc_conf_t *conf; |
372 | 372 |
373 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_auth_basic_loc_conf_t)); | 373 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_auth_basic_loc_conf_t)); |
374 if (conf == NULL) { | 374 if (conf == NULL) { |
375 return NGX_CONF_ERROR; | 375 return NULL; |
376 } | 376 } |
377 | 377 |
378 return conf; | 378 return conf; |
379 } | 379 } |
380 | 380 |