Skip to content

Commit

Permalink
Merge branch 'ep/ident-with-getaddrinfo'
Browse files Browse the repository at this point in the history
A fix-up for recent topic.

* ep/ident-with-getaddrinfo:
  ident: fix undefined variable when NO_IPV6 is set
  • Loading branch information
Junio C Hamano committed Dec 15, 2015
2 parents a899d50 + 58d29ec commit 47be26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ident.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int canonical_name(const char *host, struct strbuf *out)
freeaddrinfo(ai);
}
#else
struct hostent *he = gethostbyname(buf);
struct hostent *he = gethostbyname(host);
if (he && strchr(he->h_name, '.')) {
strbuf_addstr(out, he->h_name);
status = 0;
Expand Down

0 comments on commit 47be26d

Please sign in to comment.