aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-28 13:13:22 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-28 13:13:22 +0000
commit79e1585c2d078e1d80e633107cd1f5a6bfe51496 (patch)
tree1dda6f9fba67fc199e21abfd467f8dc8cc893284
parent186aa9d9d7e5581f7cb8059e27bfd6400688104a (diff)
downloadfetchmail-79e1585c2d078e1d80e633107cd1f5a6bfe51496.tar.gz
fetchmail-79e1585c2d078e1d80e633107cd1f5a6bfe51496.tar.bz2
fetchmail-79e1585c2d078e1d80e633107cd1f5a6bfe51496.zip
Properly initialize smtp_socket member.
svn path=/trunk/; revision=1033
-rw-r--r--fetchmail.c1
-rw-r--r--options.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 723257f9..9652dab3 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -533,6 +533,7 @@ static int load_params(int argc, char **argv, int optind)
struct query def_opts, *ctl, *mp;
memset(&def_opts, '\0', sizeof(struct query));
+ def_opts.smtp_socket = -1;
def_opts.server.protocol = P_AUTO;
def_opts.server.timeout = CLIENT_TIMEOUT;
diff --git a/options.c b/options.c
index 74893519..dc39b284 100644
--- a/options.c
+++ b/options.c
@@ -122,6 +122,7 @@ struct query *ctl; /* option record to be initialized */
cmd_daemon = -1;
memset(ctl, '\0', sizeof(struct query)); /* start clean */
+ ctl->smtp_socket = -1;
while (!errflag &&
(c = getopt_long(argc,argv,shortoptions,