1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Merge further cppcheck fixes from Ilya Shipitsin.

This commit is contained in:
Simon Tatham
2017-06-20 07:08:25 +01:00
3 changed files with 11 additions and 8 deletions

View File

@ -548,7 +548,7 @@ SockAddr sk_namelookup(const char *host, char **canonicalname,
if ((a = p_inet_addr(host)) == (unsigned long) INADDR_NONE) {
struct hostent *h = NULL;
int err;
int err = 0;
#ifndef NO_IPV6
/*
* Use getaddrinfo when it's available