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_expire.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_expire.c')
-rw-r--r-- | src/mod_expire.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_expire.c b/src/mod_expire.c index d0f771bf..ae7714be 100644 --- a/src/mod_expire.c +++ b/src/mod_expire.c @@ -226,7 +226,7 @@ SETDEFAULTS_FUNC(mod_expire_set_defaults) { if (!p) return HANDLER_ERROR; - 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]; |