summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2015-03-24 16:32:16 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2015-03-24 16:32:16 +0000
commit69cbeaec9d414796f70ab0a98b581895cae0be89 (patch)
treedd21d70b96cb50802cce0542db01d58a97ada1f0
parentbf7aabb41b04efb076bed9de84b15b03f3006073 (diff)
tidying
-rw-r--r--src/src/ip.c2
-rw-r--r--src/src/tlscert-gnu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/src/ip.c b/src/src/ip.c
index 5b37e3898..f6c7433f5 100644
--- a/src/src/ip.c
+++ b/src/src/ip.c
@@ -101,7 +101,7 @@ int
ip_addr(void * sin_, int af, const uschar * address, int port)
{
union sockaddr_46 * sin = sin_;
-memset(sin, 0, sizeof(sin));
+memset(sin, 0, sizeof(*sin));
/* Setup code when using an IPv6 socket. The wildcard address is ":", to
ensure an IPv6 socket is used. */
diff --git a/src/src/tlscert-gnu.c b/src/src/tlscert-gnu.c
index dd48d6fe9..98ee730d6 100644
--- a/src/src/tlscert-gnu.c
+++ b/src/src/tlscert-gnu.c
@@ -182,7 +182,7 @@ return string_copy(sp);
uschar *
tls_cert_signature(void * cert, uschar * mod)
{
-uschar * cp1;
+uschar * cp1 = NULL;
uschar * cp2;
uschar * cp3;
size_t len = 0;