Commit 1750d38f authored by Cliff Woolley's avatar Cliff Woolley
Browse files

The bucket_foo_create() functions do not need to use calloc() because

all of the members of the apr_bucket struct are always explicitly
initialized anyway... malloc() should be used instead.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89389 13f79535-47bb-0310-9956-ffa450edef68
parent 6519692c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ AP_DECLARE(apr_bucket *) ap_bucket_error_make(apr_bucket *b, int error,
AP_DECLARE(apr_bucket *) ap_bucket_error_create(int error, 
		const char *buf, apr_pool_t *p)
{
    apr_bucket *b = (apr_bucket *)calloc(1, sizeof(*b));
    apr_bucket *b = (apr_bucket *)malloc(sizeof(*b));

    APR_BUCKET_INIT(b);
    return ap_bucket_error_make(b, error, buf, p);