Skip to content
Snippets Groups Projects
Commit 47be26df authored by Junio C Hamano's avatar Junio C Hamano
Browse files

Merge branch 'ep/ident-with-getaddrinfo'

A fix-up for recent topic.

* ep/ident-with-getaddrinfo:
  ident: fix undefined variable when NO_IPV6 is set
parents a899d500 58d29ece
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ static int canonical_name(const char *host, struct strbuf *out) ...@@ -86,7 +86,7 @@ static int canonical_name(const char *host, struct strbuf *out)
freeaddrinfo(ai); freeaddrinfo(ai);
} }
#else #else
struct hostent *he = gethostbyname(buf); struct hostent *he = gethostbyname(host);
if (he && strchr(he->h_name, '.')) { if (he && strchr(he->h_name, '.')) {
strbuf_addstr(out, he->h_name); strbuf_addstr(out, he->h_name);
status = 0; status = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment