Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ep/ident-with-getaddrinfo'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 15 Dec 2015 17:33:19 +0000
(09:33 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 15 Dec 2015 17:33:19 +0000
(09:33 -0800)
A fix-up for recent topic.
* ep/ident-with-getaddrinfo:
ident: fix undefined variable when NO_IPV6 is set
ident.c
patch
|
blob
|
history
raw
(from parent 1:
a899d50
)
diff --git
a/ident.c
b/ident.c
index 4e7f99d5dd79745e53c55e8ae39ab12dc39789df..00a62e0c4276fb8889a0b158c9e71a22e3be092c 100644
(file)
--- 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;