From: jacob Date: Mon, 14 Feb 2005 15:03:32 +0000 (+0000) Subject: Initialise (struct Socket_tag).connected in sk_newlistener() since Valgrind X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/92cfdc708c5db1d0ed679d262e943fffe20f680b Initialise (struct Socket_tag).connected in sk_newlistener() since Valgrind complained. (I _think_ this is the correct initialisation.) git-svn-id: svn://svn.tartarus.org/sgt/putty@5299 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/uxnet.c b/unix/uxnet.c index 05f9f251..0654050f 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -678,6 +678,7 @@ Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i ret->oobpending = FALSE; ret->listener = 1; ret->addr = NULL; + ret->connected = 0; /* * Translate address_family from platform-independent constants