aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 7e88b141c..259ee5cc4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3130,6 +3130,8 @@ static void free_config_fields(struct Configurable *config)
free(config->cookiejar);
if(config->ftp_account)
free(config->ftp_account);
+ if(config->iface)
+ free(config->iface);
curl_slist_free_all(config->quote); /* checks for config->quote == NULL */
curl_slist_free_all(config->prequote);
@@ -4321,6 +4323,7 @@ int main(int argc, char *argv[])
{
int res;
struct Configurable config;
+
memset(&config, 0, sizeof(struct Configurable));
config.errors = stderr; /* default errors to stderr */