diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-24 19:20:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-24 19:20:59 -0700 |
commit | 0c544a22f9297b305949bd77f15183aa8fffd8fc (patch) | |
tree | e27dd3a877d391d79031596138d513c0eb6674a1 /daemon.c | |
parent | Merge branch 'tr/line-log' (diff) | |
parent | diff.c: Do not initialize a variable, which gets reassigned anyway. (diff) | |
download | tgif-0c544a22f9297b305949bd77f15183aa8fffd8fc.tar.xz |
Merge branch 'sb/misc-fixes'
Assorted code cleanups and a minor fix.
* sb/misc-fixes:
diff.c: Do not initialize a variable, which gets reassigned anyway.
commit: Fix a memory leak in determine_author_info
daemon.c:handle: Remove unneeded check for null pointer.
Diffstat (limited to 'daemon.c')
-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; |