]> git.tue.mpg.de Git - paraslash.git/commitdiff
net: Remove pointless initialization in makesock_addrinfo().
authorAndre Noll <maan@systemlinux.org>
Sun, 8 Sep 2013 04:18:07 +0000 (04:18 +0000)
committerAndre Noll <maan@systemlinux.org>
Wed, 1 Jan 2014 17:40:15 +0000 (17:40 +0000)
net.c

diff --git a/net.c b/net.c
index d1c6eb510f5b971389968849b713f46995932ab6..d00895f50342a528f9e6008e886c766a8808820e 100644 (file)
--- a/net.c
+++ b/net.c
@@ -422,7 +422,7 @@ static int lookup_address(unsigned l4type, bool passive, const char *host,
 static int makesock_addrinfo(unsigned l4type, bool passive, struct addrinfo *ai,
                struct flowopts *fo)
 {
-       struct addrinfo *local, *remote, *src = NULL, *dst = NULL;
+       struct addrinfo *local, *remote, *src, *dst;
        int ret = -E_MAKESOCK, on = 1, sockfd = -1;
 
        if (passive) {