Mercurial > hg > nginx
comparison src/http/modules/ngx_http_secure_link_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 | bbb17a60ec44 |
children | 7224d008faaf |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
150 { | 150 { |
151 ngx_http_secure_link_conf_t *conf; | 151 ngx_http_secure_link_conf_t *conf; |
152 | 152 |
153 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_secure_link_conf_t)); | 153 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_secure_link_conf_t)); |
154 if (conf == NULL) { | 154 if (conf == NULL) { |
155 return NGX_CONF_ERROR; | 155 return NULL; |
156 } | 156 } |
157 | 157 |
158 /* | 158 /* |
159 * set by ngx_pcalloc(): | 159 * set by ngx_pcalloc(): |
160 * | 160 * |