Mercurial > hg > nginx
comparison src/http/modules/ngx_http_mp4_module.c @ 6973:99934aade555
Use ngx_calloc_buf() where appropriate.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 12 Apr 2017 22:21:04 +0300 |
parents | 2b2239a1e0d4 |
children | e5069816039b |
comparison
equal
deleted
inserted
replaced
6972:6e8c249b34ea | 6973:99934aade555 |
---|---|
634 if (ngx_http_set_content_type(r) != NGX_OK) { | 634 if (ngx_http_set_content_type(r) != NGX_OK) { |
635 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 635 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
636 } | 636 } |
637 | 637 |
638 if (mp4 == NULL) { | 638 if (mp4 == NULL) { |
639 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); | 639 b = ngx_calloc_buf(r->pool); |
640 if (b == NULL) { | 640 if (b == NULL) { |
641 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 641 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
642 } | 642 } |
643 | 643 |
644 b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t)); | 644 b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t)); |