From af4581a4cd0966cd55bf86dd09b16e8bf9bc8953 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 29 Nov 2000 19:39:17 +0000 Subject: [PATCH] Fix some const confusion with simpler code. XXX note that 1.3.13 grew the xmethods in some recent patch: typedef struct { table *action_types; /* Added with Action... */ char *scripted[METHODS]; /* Added with Script... */ array_header *xmethods; /* Added with Script -- extension methods */ } action_dir_config; XXx seems like whoever applied needs to port forward to 2.0 :-) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87133 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_actions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/mappers/mod_actions.c b/modules/mappers/mod_actions.c index 7d48fe6d22..25143acad0 100644 --- a/modules/mappers/mod_actions.c +++ b/modules/mappers/mod_actions.c @@ -99,10 +99,9 @@ module action_module; static void *create_action_dir_config(apr_pool_t *p, char *dummy) { action_dir_config *new = - (action_dir_config *) apr_palloc(p, sizeof(action_dir_config)); + (action_dir_config *) apr_pcalloc(p, sizeof(action_dir_config)); new->action_types = apr_make_table(p, 4); - memset(new->scripted, 0, sizeof(new->scripted)); return new; } -- 2.40.0