diff options
author | 2015-12-15 09:33:19 -0800 | |
---|---|---|
committer | 2015-12-15 09:33:19 -0800 | |
commit | 47be26dfcc09248654d93cc7e754d8b0a43ba5e5 (patch) | |
tree | 04535c15b060265f786bbf69f52bd1eb71a61710 | |
parent | Merge branch 'ls/p4-keep-empty-commits' (diff) | |
parent | ident: fix undefined variable when NO_IPV6 is set (diff) | |
download | tgif-47be26dfcc09248654d93cc7e754d8b0a43ba5e5.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |