comparison src/http/modules/ngx_http_image_filter_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 896db5a09bd2
children 0070504324d8
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
945 { 945 {
946 ngx_http_image_filter_conf_t *conf; 946 ngx_http_image_filter_conf_t *conf;
947 947
948 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_image_filter_conf_t)); 948 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_image_filter_conf_t));
949 if (conf == NULL) { 949 if (conf == NULL) {
950 return NGX_CONF_ERROR; 950 return NULL;
951 } 951 }
952 952
953 conf->filter = NGX_CONF_UNSET_UINT; 953 conf->filter = NGX_CONF_UNSET_UINT;
954 conf->jpeg_quality = NGX_CONF_UNSET; 954 conf->jpeg_quality = NGX_CONF_UNSET;
955 conf->buffer_size = NGX_CONF_UNSET_SIZE; 955 conf->buffer_size = NGX_CONF_UNSET_SIZE;