From 4cf590f35703875aac2d3b579718f489c5ac269d Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Sun, 18 Nov 2001 07:49:28 +0000 Subject: [PATCH] Don't need apr_pcalloc on any of these, since we explicitly initialize 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 | 2 +- modules/aaa/mod_auth_anon.c | 2 +- modules/aaa/mod_auth_db.c | 2 +- modules/aaa/mod_auth_dbm.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/aaa/mod_auth.c b/modules/aaa/mod_auth.c index 1e0233089d..6167b3846b 100644 --- a/modules/aaa/mod_auth.c +++ b/modules/aaa/mod_auth.c @@ -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 */ diff --git a/modules/aaa/mod_auth_anon.c b/modules/aaa/mod_auth_anon.c index 5b008ae6ce..21d9c49898 100644 --- a/modules/aaa/mod_auth_anon.c +++ b/modules/aaa/mod_auth_anon.c @@ -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; diff --git a/modules/aaa/mod_auth_db.c b/modules/aaa/mod_auth_db.c index 958c43ab7e..11f7779d34 100644 --- a/modules/aaa/mod_auth_db.c +++ b/modules/aaa/mod_auth_db.c @@ -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; diff --git a/modules/aaa/mod_auth_dbm.c b/modules/aaa/mod_auth_dbm.c index f44b503bdb..7490f0af9e 100644 --- a/modules/aaa/mod_auth_dbm.c +++ b/modules/aaa/mod_auth_dbm.c @@ -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; -- 2.40.0