diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-04-30 20:37:33 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-04-30 20:38:03 -0400 |
commit | 1465cf80f90de51920e9d125a2dcb24beaaba3af (patch) | |
tree | 027ef5c322fe6584d837471bf3fe4848d4bc358c /src/mod_proxy.c | |
parent | 9c0ef6876db7e71f92886af15d7b3a9c0c843926 (diff) | |
download | lighttpd-git-1465cf80f90de51920e9d125a2dcb24beaaba3af.tar.gz |
[core] calloc plugin_config for consistent init
Diffstat (limited to 'src/mod_proxy.c')
-rw-r--r-- | src/mod_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_proxy.c b/src/mod_proxy.c index 52f07964..f91c6941 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -198,7 +198,7 @@ SETDEFAULTS_FUNC(mod_proxy_set_defaults) { data_config const* config = (data_config const*)srv->config_context->data[i]; plugin_config *s; - s = malloc(sizeof(plugin_config)); + s = calloc(1, sizeof(plugin_config)); s->extensions = array_init(); s->debug = 0; s->replace_http_host = 0; |