diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2019-02-27 18:12:48 +0530 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2019-04-20 02:09:04 -0400 |
commit | 6a988bb0d0148db1646be7c07aa81922afc9cc7f (patch) | |
tree | c536c29f5f1e95835630abe45f41515b3980f3d6 /src/mod_authn_file.c | |
parent | 599b4f05c8ccebd0c06074972824b930afc9c832 (diff) | |
download | lighttpd-git-6a988bb0d0148db1646be7c07aa81922afc9cc7f.tar.gz |
[multiple] cleaner calloc use in SETDEFAULTS_FUNC
github: closes #99
x-ref:
"cleaner calloc use in SETDEFAULTS_FUNC"
https://github.com/lighttpd/lighttpd1.4/pull/99
Diffstat (limited to 'src/mod_authn_file.c')
-rw-r--r-- | src/mod_authn_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_authn_file.c b/src/mod_authn_file.c index 6264d62c..1e16075e 100644 --- a/src/mod_authn_file.c +++ b/src/mod_authn_file.c @@ -130,7 +130,7 @@ SETDEFAULTS_FUNC(mod_authn_file_set_defaults) { { NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET } }; - p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *)); + p->config_storage = calloc(srv->config_context->used, sizeof(plugin_config *)); for (i = 0; i < srv->config_context->used; i++) { data_config const* config = (data_config const*)srv->config_context->data[i]; |