summaryrefslogtreecommitdiff
path: root/mmap
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-04-30 21:17:57 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-04-30 21:17:57 +0000
commit1684ba7f65fe76d6f0f41b696a8229f51e6eacbf (patch)
tree93fc1a44de5c1d6f9461dd99eeba2973d6c88ee3 /mmap
parent70342641a3982c3c1bea7ec301a7167cfd82e7e9 (diff)
downloadlibapr-1684ba7f65fe76d6f0f41b696a8229f51e6eacbf.tar.gz
Use ap_pcalloc instead of ap_palloc where it makes sense.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60005 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap')
-rw-r--r--mmap/unix/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c
index 5e5b571f7..aec212265 100644
--- a/mmap/unix/mmap.c
+++ b/mmap/unix/mmap.c
@@ -84,7 +84,7 @@ ap_status_t ap_mmap_create(ap_mmap_t **new, ap_file_t *file, ap_off_t offset,
if (file == NULL || file->filedes == -1)
return APR_EBADF;
- (*new) = (ap_mmap_t *)ap_palloc(cont, sizeof(ap_mmap_t));
+ (*new) = (ap_mmap_t *)ap_pcalloc(cont, sizeof(ap_mmap_t));
ap_seek(file, APR_SET, &offset);
mm = mmap(NULL, size, PROT_READ, MAP_SHARED, file->filedes ,0);