diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-07-14 23:35:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 09:45:11 -0700 |
commit | 5d9cfa29d27156cc9a00c75eaa31b831107ed0b9 (patch) | |
tree | 772f8279ecda632bed6a18f45c611e5fcf4f9527 | |
parent | Merge branch 'maint-1.8.1' into maint-1.8.2 (diff) | |
download | tgif-5d9cfa29d27156cc9a00c75eaa31b831107ed0b9.tar.xz |
daemon.c:handle: Remove unneeded check for null pointer.
addr doesn't need to be checked at that line as it it already accessed
7 lines before in the if (addr->sa_family).
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -760,7 +760,7 @@ static void handle(int incoming, struct sockaddr *addr, socklen_t addrlen) snprintf(portbuf, sizeof(portbuf), "REMOTE_PORT=%d", ntohs(sin_addr->sin_port)); #ifndef NO_IPV6 - } else if (addr && addr->sa_family == AF_INET6) { + } else if (addr->sa_family == AF_INET6) { struct sockaddr_in6 *sin6_addr = (void *) addr; char *buf = addrbuf + 12; |