]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
The bucket_foo_create() functions do not need to use calloc() because
authorCliff Woolley <jwoolley@apache.org>
Tue, 19 Jun 2001 18:48:21 +0000 (18:48 +0000)
committerCliff Woolley <jwoolley@apache.org>
Tue, 19 Jun 2001 18:48:21 +0000 (18:48 +0000)
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

server/error_bucket.c

index 7a786ff4d867104e1efaf4e912d376a7538711b9..6c5c61c7280f1259417deaf5340bc3c45498dc51 100644 (file)
@@ -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);