[exim-cvs] tidying

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] tidying
Gitweb: http://git.exim.org/exim.git/commitdiff/69cbeaec9d414796f70ab0a98b581895cae0be89
Commit:     69cbeaec9d414796f70ab0a98b581895cae0be89
Parent:     bf7aabb41b04efb076bed9de84b15b03f3006073
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Tue Mar 24 16:32:16 2015 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Tue Mar 24 16:32:16 2015 +0000


    tidying
---
 src/src/ip.c          |    2 +-
 src/src/tlscert-gnu.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/src/src/ip.c b/src/src/ip.c
index 5b37e38..f6c7433 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 dd48d6f..98ee730 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;