httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r709881 - /httpd/httpd/trunk/modules/aaa/mod_authz_core.c
Date Sun, 02 Nov 2008 13:38:11 GMT
Author: rpluem
Date: Sun Nov  2 05:38:11 2008
New Revision: 709881

URL: http://svn.apache.org/viewvc?rev=709881&view=rev
Log:
* Better use calloc instead of alloc to initialize unset fields in struct.

Modified:
    httpd/httpd/trunk/modules/aaa/mod_authz_core.c

Modified: httpd/httpd/trunk/modules/aaa/mod_authz_core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authz_core.c?rev=709881&r1=709880&r2=709881&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authz_core.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authz_core.c Sun Nov  2 05:38:11 2008
@@ -154,7 +154,7 @@
             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;



Mime
View raw message