apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r758623 - /apr/apr/trunk/memory/unix/apr_pools.c
Date Thu, 26 Mar 2009 13:13:04 GMT
Author: rpluem
Date: Thu Mar 26 13:12:58 2009
New Revision: 758623

URL: http://svn.apache.org/viewvc?rev=758623&view=rev
Log:
* Remove another unneeded calloc

Modified:
    apr/apr/trunk/memory/unix/apr_pools.c

Modified: apr/apr/trunk/memory/unix/apr_pools.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/memory/unix/apr_pools.c?rev=758623&r1=758622&r2=758623&view=diff
==============================================================================
--- apr/apr/trunk/memory/unix/apr_pools.c (original)
+++ apr/apr/trunk/memory/unix/apr_pools.c Thu Mar 26 13:12:58 2009
@@ -823,7 +823,9 @@
                                   APR_THREAD_MUTEX_NESTED, pool);
     pool->final_blocks = pool->blocks;
     pool->final_cleanups = pool->cleanups;
-    pool->blocks = calloc(1, sizeof(block_list_t));
+    pool->blocks = malloc(sizeof(block_list_t));
+    pool->blocks->offset = 0;
+    pool->blocks->next = NULL;
     pool->cleanups = NULL;
     
     



Mime
View raw message