]> granicus.if.org Git - apache/commitdiff
Don't need apr_pcalloc on any of these, since we explicitly initialize
authorCliff Woolley <jwoolley@apache.org>
Sun, 18 Nov 2001 07:49:28 +0000 (07:49 +0000)
committerCliff Woolley <jwoolley@apache.org>
Sun, 18 Nov 2001 07:49:28 +0000 (07:49 +0000)
all data members anyway.

Submitted by: Ryan Bloom

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92028 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_auth.c
modules/aaa/mod_auth_anon.c
modules/aaa/mod_auth_db.c
modules/aaa/mod_auth_dbm.c

index 1e0233089ddeb8f2397c5f259476a41f49b82ae4..6167b3846ba37d5b91861e0373b41197492507ed 100644 (file)
@@ -90,7 +90,7 @@ typedef struct {
 
 static void *create_auth_dir_config(apr_pool_t *p, char *d)
 {
-    auth_config_rec *conf = apr_pcalloc(p, sizeof(*conf));
+    auth_config_rec *conf = apr_palloc(p, sizeof(*conf));
 
     conf->auth_pwfile = NULL;  /* just to illustrate the default really */
     conf->auth_grpfile = NULL; /* unless you have a broken HP cc */
index 5b008ae6ce68b6e54794199e29d4aaeb892b23bf..21d9c49898ede74c9e587ae695af76c192559ae2 100644 (file)
@@ -126,7 +126,7 @@ typedef struct {
 
 static void *create_anon_auth_dir_config(apr_pool_t *p, char *d)
 {
-    anon_auth_config_rec *conf = apr_pcalloc(p, sizeof(*conf));
+    anon_auth_config_rec *conf = apr_palloc(p, sizeof(*conf));
 
     /* just to illustrate the defaults really. */
     conf->anon_auth_passwords = NULL;
index 958c43ab7ee0a9ecb342153950af376f6821bc92..11f7779d3444c7d97c016642d957cc929dbda1df 100644 (file)
@@ -127,7 +127,7 @@ typedef struct {
 
 static void *create_db_auth_dir_config(apr_pool_t *p, char *d)
 {
-    db_auth_config_rec *conf = apr_pcalloc(p, sizeof(*conf));
+    db_auth_config_rec *conf = apr_palloc(p, sizeof(*conf));
 
     conf->auth_dbpwfile = NULL;
     conf->auth_dbgrpfile = NULL;
index f44b503bdbb45703a031f9195ab9dbc35aed5dae..7490f0af9e97e50e3b0cca38d4896986db352ab3 100644 (file)
@@ -118,7 +118,7 @@ typedef struct {
 
 static void *create_dbm_auth_dir_config(apr_pool_t *p, char *d)
 {
-    dbm_auth_config_rec *conf = apr_pcalloc(p, sizeof(*conf));
+    dbm_auth_config_rec *conf = apr_palloc(p, sizeof(*conf));
 
     conf->auth_dbmpwfile = NULL;
     conf->auth_dbmgrpfile = NULL;