diff options
author | striker <striker@13f79535-47bb-0310-9956-ffa450edef68> | 2002-02-06 21:01:36 +0000 |
---|---|---|
committer | striker <striker@13f79535-47bb-0310-9956-ffa450edef68> | 2002-02-06 21:01:36 +0000 |
commit | 60bd6c06563d93ac54717ca9bea005e0bacfe93a (patch) | |
tree | 93b4abae3ece72781323b2f3d2ad1bfdf1bc7e17 /memory | |
parent | 71c0235ba697c233641e446b8486a572314f22e8 (diff) | |
download | libapr-60bd6c06563d93ac54717ca9bea005e0bacfe93a.tar.gz |
Fix a bug where we are NULL'ing too many bytes.
Submitted by: William A. Rowe
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r-- | memory/unix/apr_pools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c index 4e51cd38c..575855a53 100644 --- a/memory/unix/apr_pools.c +++ b/memory/unix/apr_pools.c @@ -240,7 +240,7 @@ APR_DECLARE(apr_status_t) apr_pool_initialize(void) if (apr_pools_initialized++) return APR_SUCCESS; - memset(&global_allocator, 0, SIZEOF_ALLOCATOR_T); + memset(&global_allocator, 0, sizeof(global_allocator)); if ((rv = apr_pool_create_ex(&global_pool, NULL, NULL, APR_POOL_FDEFAULT)) != APR_SUCCESS) { return rv; @@ -269,7 +269,7 @@ APR_DECLARE(void) apr_pool_terminate(void) apr_pool_destroy(global_pool); /* This will also destroy the mutex */ global_pool = NULL; - memset(&global_allocator, 0, SIZEOF_ALLOCATOR_T); + memset(&global_allocator, 0, sizeof(global_allocator)); } #ifdef NETWARE |