diff options
author | jwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68> | 2001-06-19 18:48:33 +0000 |
---|---|---|
committer | jwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68> | 2001-06-19 18:48:33 +0000 |
commit | 6ace24e596c38e85eaa4cec3196477ed45270cb2 (patch) | |
tree | 53131d2fccba300651c578fb5d232804ff18595f /buckets/apr_buckets_mmap.c | |
parent | e03cbae196a6ec3bfaaa6e038e3dcf7a2e75ed4b (diff) | |
download | libapr-util-6ace24e596c38e85eaa4cec3196477ed45270cb2.tar.gz |
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: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets/apr_buckets_mmap.c')
-rw-r--r-- | buckets/apr_buckets_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buckets/apr_buckets_mmap.c b/buckets/apr_buckets_mmap.c index 4617d418..2cb7bd01 100644 --- a/buckets/apr_buckets_mmap.c +++ b/buckets/apr_buckets_mmap.c @@ -109,7 +109,7 @@ APU_DECLARE(apr_bucket *) apr_bucket_mmap_make(apr_bucket *b, APU_DECLARE(apr_bucket *) apr_bucket_mmap_create( apr_mmap_t *mm, apr_off_t start, apr_size_t length) { - apr_bucket *b = (apr_bucket *)calloc(1, sizeof(*b)); + apr_bucket *b = (apr_bucket *)malloc(sizeof(*b)); APR_BUCKET_INIT(b); return apr_bucket_mmap_make(b, mm, start, length); |