summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-12-15 17:33:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-12-15 17:33:19 (GMT)
commit47be26dfcc09248654d93cc7e754d8b0a43ba5e5 (patch)
tree04535c15b060265f786bbf69f52bd1eb71a61710
parenta899d500c6255c245586e5ef366ad2d99e5db81c (diff)
parent58d29ececf8fc287d9b244c617edd174ded66b01 (diff)
downloadgit-47be26dfcc09248654d93cc7e754d8b0a43ba5e5.zip
git-47be26dfcc09248654d93cc7e754d8b0a43ba5e5.tar.gz
git-47be26dfcc09248654d93cc7e754d8b0a43ba5e5.tar.bz2
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
-rw-r--r--ident.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ident.c b/ident.c
index 4e7f99d..00a62e0 100644
--- a/ident.c
+++ b/ident.c
@@ -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;