summaryrefslogtreecommitdiff
path: root/src/mod_access.c
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-16 13:07:46 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-16 13:07:46 +0000
commitbac9212c8fba39295dd7460986da252eb695d2cc (patch)
tree90364a573109e18953adac706ad1cee38d88bfd1 /src/mod_access.c
parent2bc237115eb2dce3e38ae63ead5fc80a1713825d (diff)
downloadlighttpd1.4-bac9212c8fba39295dd7460986da252eb695d2cc.tar.gz
lighttpd1.4-bac9212c8fba39295dd7460986da252eb695d2cc.zip
fixed possible uninit variables of the config-parser fails (merged [183])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@551 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_access.c')
-rw-r--r--src/mod_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_access.c b/src/mod_access.c
index 3769845b..ed299425 100644
--- a/src/mod_access.c
+++ b/src/mod_access.c
@@ -63,12 +63,12 @@ SETDEFAULTS_FUNC(mod_access_set_defaults) {
{ NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};
- p->config_storage = malloc(srv->config_context->used * sizeof(specific_config *));
+ p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
for (i = 0; i < srv->config_context->used; i++) {
plugin_config *s;
- s = malloc(sizeof(plugin_config));
+ s = calloc(1, sizeof(plugin_config));
s->access_deny = array_init();
cv[0].destination = s->access_deny;