diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2000-11-29 20:39:17 +0100 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2000-11-29 20:39:17 +0100 |
commit | af4581a4cd0966cd55bf86dd09b16e8bf9bc8953 (patch) | |
tree | c6c47370ec00937d099c67ec559e8ec0691c9ec3 /modules/mappers/mod_actions.c | |
parent | Fix uninitialized badness (diff) | |
download | apache2-af4581a4cd0966cd55bf86dd09b16e8bf9bc8953.tar.xz apache2-af4581a4cd0966cd55bf86dd09b16e8bf9bc8953.zip |
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
Diffstat (limited to '')
-rw-r--r-- | modules/mappers/mod_actions.c | 3 |
1 files changed, 1 insertions, 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; } |