]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Better use calloc instead of alloc to initialize unset fields in struct.
authorRuediger Pluem <rpluem@apache.org>
Sun, 2 Nov 2008 13:38:11 +0000 (13:38 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sun, 2 Nov 2008 13:38:11 +0000 (13:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709881 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authz_core.c

index cfda8a7337b59aa7cfc5a6b6f2f3e83bb59f745e..2ac4c12d77330e868b6cc0ac202e0880bed5daa9 100644 (file)
@@ -154,7 +154,7 @@ static void *merge_authz_core_dir_config(apr_pool_t *p,
             section = apr_pmemdup(p, new->section, sizeof(*new->section));
         }
 
-        conf = apr_palloc(p, sizeof(*conf));
+        conf = apr_pcalloc(p, sizeof(*conf));
 
         conf->section = section;
         conf->op = new->op;