comparison src/http/modules/ngx_http_xslt_filter_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 a72886067bbb
children 595a3de03e91
comparison
equal deleted inserted replaced
6972:6e8c249b34ea 6973:99934aade555
582 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 582 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
583 "xsltSaveResultToString() returned zero-length result"); 583 "xsltSaveResultToString() returned zero-length result");
584 return NULL; 584 return NULL;
585 } 585 }
586 586
587 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); 587 b = ngx_calloc_buf(r->pool);
588 if (b == NULL) { 588 if (b == NULL) {
589 ngx_free(buf); 589 ngx_free(buf);
590 return NULL; 590 return NULL;
591 } 591 }
592 592